read
Reads file contents with line numbers, auto-detects encoding, and supports reading specific line ranges or from the end of files.
Instructions
Reads a file and returns its contents with line numbers. Encoding-aware: auto-detects file encoding (UTF-8, EUC-KR, Shift-JIS, etc.). Supports offset/limit for reading specific line ranges. Negative offset reads from end (e.g. offset=-5 reads last 5 lines).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the file to read | |
| offset | No | Line number to start reading from (1-based). Negative = from end (e.g. -5 = last 5 lines). Default: 1 | |
| limit | No | Maximum number of lines to read. Default: 0 (all) |