Observe Native Ui
observe_native_uiCaptures a bounded accessibility tree and selected-window screenshot from an already-running native app using its PID and window ID; fails on denied OS permissions without broad capture or app launch.
Instructions
Observe an already-running native app by PID and window ID, bound to the active Mach-O target. Captures a bounded accessibility tree and selected-window screenshot; OS permission denial fails without broad capture or target launch.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pid": 123,
"window_id": 456
},
"name": "observe_native_ui"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | ||
| max_nodes | No | Maximum accessibility nodes per capture; increase for large windows. | |
| window_id | Yes | ||
| screenshot | No | ||
| accessibility | No |