tail_site_logs
Read the most recent nginx access or error log lines to diagnose site issues. Use an optional domain substring to narrow results, with output capped at 1000 lines.
Instructions
Tail nginx's access or error log (capped at 1000 lines). domain is a best-effort substring filter, not a true per-vhost filter - see the result's note.
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": {
"log_type": "<log_type>"
},
"name": "tail_site_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Most recent lines to return, capped at 1000 | |
| domain | No | Best-effort substring filter over each log line - see the result's `note` for its limits | |
| log_type | Yes | Which nginx log to read |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Present when a domain filter was applied, or when the read failed | |
| lines | Yes | ||
| success | Yes |