Skip to main content
Glama

gesture-swipe

Execute swipe or drag gestures on iOS simulator or Android emulator. Use to scroll lists, dismiss modals, drag elements, or navigate between pages.

Instructions

Execute a smooth swipe / drag touch gesture between two points on the device (iOS simulator or Android emulator). All from/to positions are normalized 0.0–1.0 (fractions of screen width/height, not pixels), same as gesture-tap. Generates interpolated Move events for a natural feel (~60fps). Swipe up (fromY > toY) to scroll content down. Use when you need to scroll a list, dismiss a modal, drag an element, or navigate between pages. Not supported on Chromium — use gesture-scroll there instead. Returns { swiped: true, timestampMs }. Fails if the simulator-server / emulator backend is not reachable for the given device.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toXYesEnd x: normalized 0.0–1.0 (not pixels; same as tap)
toYYesEnd y: normalized 0.0–1.0 (not pixels; same as tap)
udidYesTarget device id from `list-devices` (iOS UDID or Android serial).
fromXYesStart x: normalized 0.0–1.0 (not pixels; same as tap)
fromYYesStart y: normalized 0.0–1.0 (not pixels; same as tap)
durationMsNoTotal gesture duration in milliseconds (default 300)
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. Discloses interpolation at 60fps, return format, and failure condition when backend unreachable. Lacks mention of state modification, but gesture implies UI effect.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Every sentence adds value; front-loaded with main action, structured logically. No unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers purpose, usage, coordinate system, direction, platform restrictions, return format, and failure condition. Comprehensive for a gesture tool with no output schema or annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, baseline 3. Description adds meaning by explaining direction semantics (fromY > toY for swipe up to scroll down) and reiterates normalized coordinates.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it executes a swipe/drag gesture, distinguishes from siblings like gesture-scroll (explicitly says not on Chromium, use gesture-scroll instead), and mentions use cases. Specific verb+resource.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit usage scenarios (scroll list, dismiss modal, etc.) and an alternative for Chromium (gesture-scroll). Does not cover all siblings, but good guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/software-mansion/argent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server