Read local file
readRetrieve contents from a local text file on your macOS or Linux machine through Local Computer Bridge, with optional line offset and limit for specific portions.
Instructions
Read a local text file. Use this for file contents; use bash for directory listings, file discovery, grep/ripgrep, git commands, and other shell operations. Paths may be absolute, start with ~/, or be relative to the configured base directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the local text file. | |
| limit | No | Maximum number of lines to return. Defaults to 1000, max 5000. | |
| offset | No | 1-based starting line. Defaults to 1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| end_line | Yes | ||
| truncated | Yes | ||
| start_line | Yes | ||
| next_offset | Yes | ||
| total_lines | Yes |