Get device logs
get_logsFetch Android logcat or iOS unified logs with automatic crash and ANR detection. Filter by app, substring, time window, and line cap to diagnose issues.
Instructions
Fetch recent device logs (Android logcat / iOS unified log) with automatic crash & ANR detection. Filter by app_id, substring, time window, and line cap.
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": "get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | ||
| filter | No | ||
| device_id | Yes | Device id from list_devices (adb serial like 'emulator-5554', or an iOS simulator UDID) | |
| max_lines | No | ||
| since_seconds | No |