Read device logs
logsRead the newest device log records oldest first, optionally filtered by device, app package, line count, or Unix timestamp, to inspect recent device activity.
Instructions
Read the newest device log records, oldest first. On iOS without since: the last minute, or the last hour with package. An iPhone read takes about 10 s.
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": "logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of newest records. Default 30. | |
| since | No | Unix seconds on the device clock; only later records. Pass a record's time to continue. | |
| device | No | Id or name. | |
| package | No | Only this app's records. |