ssh_tail
View the last lines of a remote log file, optionally filtered by grep. Set follow to false to get the output in the response, or leave follow enabled to stream new content to stderr.
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 |