App state
get_app_stateCaptures an app's accessibility tree as an indexed snapshot so you can click, set values, scroll, or drag the correct controls.
Instructions
Snapshot one app: App=<name> (pid N) followed by its accessibility tree, each node prefixed with the index you pass to click / set_value / scroll / drag.
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": {
"app": "<app>"
},
"name": "get_app_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | Window title substring, process name, or handle | |
| max_depth | No | ||
| max_nodes | No |