ghost_snapshot
Retrieve a structured, agent-readable view of a window's UI elements—stable IDs, names, roles, rects, and actionable flags—so agents can plan clicks or typing before executing actions.
Instructions
Structured, agent-planning view of a window's UI: every element with a stable id, name, role, rect, center, enabled flag, actionable flag, and the actions it accepts (click/type). actionable = interactable role AND currently enabled - so a greyed-out button reads actionable:false. Far cheaper than a screenshot to reason over; plan here, then ghost_act by name/role. Params: window? (title substring; omitted = foreground), actionable_only? (only enabled interactable elements), limit?.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ghost_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max elements (default 150; 0 = unlimited) | |
| window | No | Window title substring; omitted = foreground window (faster) | |
| actionable_only | No | Return only interactable elements (buttons/edits/links/...) - cuts noise for planning |