Capture App State
app-state-captureCapture a diagnostic bundle with screenshot, accessibility tree, recent app logs, device info, and summary to debug app state. Specify output directory; UDID auto-detects and bundle ID filters logs.
Instructions
app-state-capture
Capture a diagnostic bundle containing screenshot.png, accessibility.json, app-logs.txt, device.json, summary.json, and README.md. Requires outputDir. udid is auto-detected; bundleId optionally filters recent logs. Creates a fresh capture directory and reports individual artifact failures. Log capture covers the last five minutes, capped at 100 lines.
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": {
"outputDir": "<outputDir>"
},
"name": "app-state-capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | No | ||
| bundleId | No | ||
| outputDir | Yes |