get_logs_by_level
Retrieve macOS and iOS logs filtered by severity level (fault, error, warning, info, debug), with optional process and time range constraints for targeted debugging.
Instructions
Get logs filtered by severity level (fault, error, warning, info, debug)
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": {
"level": "<level>"
},
"name": "get_logs_by_level"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | Log level to filter by | |
| process | No | Filter by process name | |
| maxLines | No | Maximum log lines (default: 200) | |
| lastMinutes | No | How many minutes of logs to fetch (default: 5) |