session
List active device connections, show the daemon state directory, or publish an armed open-to-destination script without closing the active connection.
Instructions
List active sessions, print the effective daemon state directory, or publish an armed open-to-destination script without closing its session Times out after 90s.
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": "session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Optional .ad output path for save-script. | |
| udid | No | Apple device or simulator UDID. | |
| debug | No | Enable debug diagnostics. | |
| force | No | Atomically replace an existing save-script target. | |
| action | No | list shows active sessions; state-dir prints the daemon state directory; save-script publishes an armed recording without teardown. | |
| device | No | Device name; ids go in udid or serial. | |
| serial | No | Android, HarmonyOS, or Vega VVD serial. | |
| target | No | Alias for deviceTarget. | |
| session | No | Session name. | |
| platform | No | Device platform. | |
| includeCost | No | Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text. | |
| deviceTarget | No | Device form factor. | |
| responseLevel | No | Result detail: digest (smallest) or full (largest), as JSON; default is compact text. | |
| mcpOutputFormat | No | Result text: compact optimized (default) or the full result as JSON (larger). |