tail_log
View the last N lines of a remote log file over SSH. Specify the file path and line count to quickly inspect recent entries.
Instructions
Tail the end of a remote log file.
Args: path: Absolute path to the log file (e.g., "/var/log/nginx/error.log"). lines: Number of lines to retrieve from the end (default 50). host_name: Named host from SSH_HOSTS config; uses default host if omitted.
Returns: Last N lines of the log file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| lines | No | ||
| host_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |