ssh_tail
Read the tail of a remote log file with optional grep filtering. Choose to follow new content or get a static snapshot of the last lines.
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 |
|---|---|---|---|
| server | Yes | Server name from configuration | |
| file | Yes | Path to the log file to tail | |
| lines | No | Number of lines to show initially (default: 10) | |
| follow | No | Follow file for new content (default: true) | |
| grep | No | Filter lines with grep pattern |