ssh_tail
Monitor remote log files by reading the tail with optional grep filtering. Disable follow mode to retrieve the last N lines directly.
Instructions
Reads the tail of a remote log file on the named server, optionally filtered by a grep pattern. Read-only; it does not modify remote state. Behavior depends on follow, which defaults to true: in follow mode it starts a streaming tail whose output is written to the server process stderr rather than returned, and the response only reports a session note, so to capture content directly set follow to false to get the last N lines back. The lines parameter defaults to 10.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the log file to tail | |
| grep | No | Filter lines with grep pattern | |
| lines | No | Number of lines to show initially (default: 10) | |
| follow | No | Follow file for new content (default: true) | |
| server | Yes | Server name from configuration |