ssh_tail_log
Tail a log file on a remote SSH server and return the last N lines, allowing quick monitoring and troubleshooting of system logs.
Instructions
Tail a log file on a remote server.
Returns the last N lines of the specified log file.
EXAMPLES:
ssh_tail_log("proxmox")
ssh_tail_log("truenas", "/var/log/messages", lines=100)
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": {
"server_name": "<server_name>"
},
"name": "ssh_tail_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of lines to tail (default: 50) | |
| log_path | No | Path to log file (default: /var/log/syslog) | /var/log/syslog |
| server_name | Yes | Server name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||