tail_log
Tail log files or systemd unit journals on remote hosts. Use grep patterns to isolate relevant lines for troubleshooting.
Instructions
Tail a log file or a systemd unit's journal.
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": {
"host": "<host>",
"source": "<source>"
},
"name": "tail_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Only return lines matching this pattern | |
| host | Yes | Configured host name | |
| lines | No | How many trailing lines to return | |
| source | Yes | Log file path, or 'unit:<name>' for a systemd unit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |