Read File
read_fileRead a UTF-8 text file from a remote host with character-based offset/limit, returning content, size, and has_more for paging.
Instructions
Read a text file as UTF-8 (invalid bytes replaced): size, offset, content, has_more. offset/limit count characters, not bytes. Default limit 200000; files over 64 MiB are rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path; "~" expands to home. | |
| limit | No | Max characters (default 200000). | |
| offset | No | Start character (default 0). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | No | ||
| size | No | ||
| error | No | ||
| offset | No | ||
| content | No | ||
| has_more | No |