Document ui_swipe preset for pull-to-refresh#71
Open
naguibihab wants to merge 1 commit into
Open
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents a downward
ui_swipepreset 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 existingui_swipewith 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)get_booted_sim_id, thenui_swipewith the README preset (duration: "1.2",x_start/x_end: 196,y_start: 130,y_end: 580)y_start>y_end) does not refresh (documented behavior)ui_describe_allto verify updated contentScreenshots / 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