logs
Read recent device or app diagnostic output and filter it with a case-insensitive regex to isolate exceptions and errors.
Instructions
Read recent log lines of the device, or of one app. Use filter to keep only matching lines, for example "exception|error".
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": "<device>"
},
"name": "logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App id: Android package, Apple bundle identifier; on "mac" the bundle identifier or app name (required there) | |
| lines | No | Keep at most this many lines (the newest). Default 200 | |
| device | Yes | Device id (or exact name) from the devices tool | |
| filter | No | Case-insensitive regular expression; only matching lines are returned | |
| seconds | No | How far back to read. Default 60 |