ssh_tail_file
Retrieve the last N lines of a remote file to monitor logs or check recent file entries via SSH.
Instructions
Get the last N lines of a file (useful for logs).
Args: path: Path to the file lines: Number of lines from the end (default: 50) session_name: SSH session to use
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": {
"path": "<path>"
},
"name": "ssh_tail_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| lines | No | ||
| session_name | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |