keyboard_snapshot
Retrieve the active iOS keyboard extension's accessibility tree and tap coordinates for automation. Use when the client app is foreground with a focused text field.
Instructions
Return the active keyboard extension accessibility tree and tap coordinates.
The client app must already be foreground with a focused text field presenting the requested extension. The first call builds and starts cached XCTest support; later calls reuse the simulator session.
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": {
"simulator_id": "<simulator_id>",
"extension_bundle_id": "<extension_bundle_id>"
},
"name": "keyboard_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| simulator_id | Yes | ||
| extension_bundle_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||