element_action
Execute one precise action—tap, long-click, set text, check, or read—on a single Android UI element matched by selector; ambiguous, stale, or disabled targets fail explicitly.
Instructions
Act on exactly one matching element: tap/long_click/double_click/set_text/append_text/clear/check/uncheck/read. Ambiguous/stale/disabled targets fail explicitly. Returns a compact ack, not a tree: set return_ui=true only when the next step needs the whole page, otherwise observe with ui_snapshot(since_snapshot_id=...) and pay only for the delta.
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": {
"selector": "<selector>"
},
"name": "element_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | ||
| action | No | tap | |
| timeout | No | ||
| selector | Yes | ||
| return_ui | No | ||
| duration_ms | No | ||
| press_enter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||