read_file
Read a text file by specifying its path. Control which lines to retrieve using offset and limit parameters to page through large files efficiently.
Instructions
Read a text file. Returns up to limit lines starting at line offset (1-indexed offset, line 1 = offset 0).
Args:
path: File path (absolute, or relative to the server's working dir). ~ is expanded.
offset: Line number to start at (0 = first line). Use this to page through large files.
limit: Maximum number of lines to return (default 2000).
Returns: path, content, total_lines, returned_lines, offset, truncated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| offset | No |