Send a timed Android key sequence
mobile_input_key_sequenceSend timed Android key and touch sequences in one call, with pauses, tap combos, and optional per-action UI checks before continuing.
Instructions
Send a timed sequence of Android keys and touchscreen taps in one call. Digits between actions are millisecond pauses, not a simultaneous chord. An x,y token is a tap; join points with + for a touch combo with no pause between them. Pass stepped.checks, one entry per action, to run each action on its own and poll for a UI node before continuing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"serial": "<serial>",
"displayId": "<displayId>",
"sequence": "<sequence>"
},
"name": "mobile_input_key_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gapMs | No | ||
| serial | Yes | Exact ADB serial from mobile_devices_list; never inferred when multiple devices exist | |
| source | No | gamepad | |
| stepped | No | ||
| sequence | Yes | ||
| displayId | Yes | Android framework logical display ID, not a SurfaceFlinger physical ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| device | Yes | ||
| backend | Yes | ||
| display | No | ||
| warnings | Yes | ||
| durationMs | Yes | ||
| operationId | Yes | ||
| schemaVersion | Yes |