search_logs
Search recent console and iOS device logs by text or regex to quickly find matching entries, with options to limit results and search duration.
Instructions
Search through recent logs for a specific string or regex pattern
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": {
"query": "<query>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text or regex pattern to search for in logs | |
| maxLines | No | Maximum matching lines to return (default: 100) | |
| useRegex | No | Treat query as a regex pattern (default: false) | |
| lastMinutes | No | How many minutes of logs to search (default: 30) |