tail
Return the last 10 lines (default) of a file or stdin as JSON. Use to view recent file additions or check log tails.
Instructions
Return the last N lines (default 10) of files or stdin as JSON. Read-only, no side effects. Returns JSON with line array by default; use --raw for plain text. Supports negative-N to skip the first N lines. Use to view recent file additions or check log tails. Not for viewing file beginnings — use 'head'. See also 'head', 'cat'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encoding | No | Text encoding. | utf-8 |
| lines | No | Number of lines. | |
| path | Yes | File to read. | |
| raw | No | Write raw selected lines without a JSON envelope. |