Skip to content

Document ui_swipe preset for pull-to-refresh#71

Open
naguibihab wants to merge 1 commit into
joshuayoes:mainfrom
naguibihab:cursor/document-ui-swipe-pull-to-refresh
Open

Document ui_swipe preset for pull-to-refresh#71
naguibihab wants to merge 1 commit into
joshuayoes:mainfrom
naguibihab:cursor/document-ui-swipe-pull-to-refresh

Conversation

@naguibihab
Copy link
Copy Markdown

@naguibihab naguibihab commented May 17, 2026

Summary

Documents a downward ui_swipe preset for pull-to-refresh on main scroll views, instead of adding a dedicated MCP tool. Keeps the server surface small per project philosophy; callers use existing ui_swipe with tuned coordinates and duration.

Motivation / real use case

E2E and agent flows need a slow, long downward drag to trigger pull-to-refresh. Generic short or upward swipes scroll without refreshing. A documented preset avoids agents guessing coordinates and duplicating a one-off tool in the server.

Test plan

  • npm run build (no code changes; docs only)
  • On a booted iPhone simulator (~393×852), call get_booted_sim_id, then ui_swipe with the README preset (duration: "1.2", x_start/x_end: 196, y_start: 130, y_end: 580)
  • Confirm pull-to-refresh triggers on a list screen with refresh enabled
  • Confirm upward swipe (y_start > y_end) does not refresh (documented behavior)
  • Wait several seconds after swipe, then ui_describe_all to verify updated content

Screenshots / video

Not applicable for documentation-only change. Maintainer or reviewer can verify by following the test plan on a booted simulator.

Existing functionality

No server code changes. All existing tools unchanged.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@naguibihab naguibihab marked this pull request as draft May 17, 2026 11:45
@naguibihab naguibihab marked this pull request as ready for review May 20, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant