inspect-and-act
Identify mobile app UI elements and perform actions like tapping, typing, or long-pressing to automate testing and interaction workflows.
Instructions
Inspect UI to identify element locators and then perform an action
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": {
"action": "<action>"
},
"name": "inspect-and-act"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform on the element | |
| elementIdentifier | No | Text, partial resource-id, or other identifier to search for | |
| text | No | Text to input if action is sendKeys | |
| longPressMs | No | Duration in ms if action is longPress | |
| timeoutMs | No | Timeout in milliseconds (default: 10000) | |
| strategy | No | Initial strategy to try if provided: id, accessibility id, xpath | |
| refreshSource | No | Whether to refresh page source before inspection | |
| saveLocators | No | Whether to save found locators for future reference |