tail_log
Retrieves the newest lines from a specified log source, ordered oldest first with secrets redacted, and optionally filters by text to inspect raw context around errors.
Instructions
Return the newest lines of a log source (by id from list_log_sources), oldest first, secrets redacted, optionally only lines containing a text. Use to read raw log context around an 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": {
"source": "<source>"
},
"name": "tail_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Optional case-insensitive substring filter. | |
| max | No | Number of trailing lines (1-500). | |
| source | Yes | Source id from list_log_sources. |