Screenshot + accessibility tree
observeCaptures a target's screenshot and accessibility tree in one call, with frame ID and token estimate; use low detail for smaller verification images.
Instructions
Screenshot and AX tree of one target in one call. The full image includes a caption with its frame id and any superseded frame, plus an estimated token cost. Use detail: low for a smaller screenshot.
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": {
"target": "<target>"
},
"name": "observe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Include nodes normally pruned as uninteresting. | |
| detail | No | Use low for verification images bounded by 1024×576 or full for the normal bounds. The configured image max edge also applies. | |
| target | Yes | Window id from list_windows (a "window:<id>" prefix is accepted), "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id so the input stays scoped to that window; desktop/display input directly drives the user's pointer and keyboard. | |
| maxDepth | No | Maximum tree depth. | |
| maxNodes | No | Maximum node count. | |
| maxWidth | No | Max delivered width (default 1366). | |
| maxHeight | No | Max delivered height (default 768). |