Read File
read_fileRead a text file (max 1MB) from the workspace. Returns first 100 lines by default; use offset and limit to read specific line ranges.
Instructions
Read a text file. Text only, max 1MB, returns first 100 lines. Use offset/limit for segments or run_bash('grep/head/tail') for large files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max lines to return. | |
| offset | No | Start line (0-based). | |
| filepath | Yes | File path relative to /workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |