List Crash Reports
mobile_list_crashesList crash reports available on a device to identify and analyze app failures.
Instructions
List crash reports available on the device
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | The device identifier to use. Use mobile_list_available_devices to find which devices are available to you. |
Implementation Reference
- src/server.ts:818-823 (handler)Handler function for mobile_list_crashes tool. Calls mobilecli.crashesList(device) and returns the result as JSON.
async ({ device }) => { ensureMobilecliAvailable(); const response = mobilecli.crashesList(device); return JSON.stringify(response.data); } ); - src/server.ts:810-823 (registration)Tool registration using the local `tool()` helper function which wraps server.registerTool().
tool( "mobile_list_crashes", "List Crash Reports", "List crash reports available on the device", { device: z.string().describe("The device identifier to use. Use mobile_list_available_devices to find which devices are available to you."), }, { readOnlyHint: true }, async ({ device }) => { ensureMobilecliAvailable(); const response = mobilecli.crashesList(device); return JSON.stringify(response.data); } ); - src/server.ts:814-817 (schema)Input schema: requires a 'device' string parameter.
{ device: z.string().describe("The device identifier to use. Use mobile_list_available_devices to find which devices are available to you."), }, { readOnlyHint: true }, - src/mobilecli.ts:152-155 (helper)Helper on the Mobilecli class that executes 'mobilecli device crashes list --device <id>' and parses the JSON response.
crashesList(deviceId: string): MobilecliCrashesListResponse { const output = this.executeCommand(["device", "crashes", "list", "--device", deviceId]); return JSON.parse(output) as MobilecliCrashesListResponse; } - src/mobilecli.ts:5-14 (helper)Type definitions for the crash list response.
export interface MobilecliCrashEntry { processName: string; timestamp: string; id: string; } export interface MobilecliCrashesListResponse { status: "ok"; data: MobilecliCrashEntry[]; }