debug_state
Query the current debug session on a mobile device to retrieve state, breakpoints, and optionally stack, local variables, or thread information.
Instructions
Query the current debug session. Returns {state, breakpoints} by default. Set include_stack=true to also fetch the stack of the stopped thread; include_vars=true to also fetch frame[0] locals; include_threads=true to enumerate all threads.
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": {
"device_id": "<device_id>"
},
"name": "debug_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Device ID | |
| include_stack | No | Include stack of stopped thread. | |
| include_vars | No | Include frame[0] locals. | |
| include_threads | No | Include all threads. |