Read file
read_fileRead a UTF-8 text file slice inside a configured workspace, using path, line range, and byte limits to inspect only the needed content.
Instructions
Read a UTF-8 text file slice inside the configured workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| encoding | No | utf-8 | |
| end_line | No | ||
| max_bytes | No | ||
| max_lines | No | ||
| start_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | No | ||
| error | No | ||
| content | No | ||
| encoding | No | ||
| end_line | No | ||
| revision | No | ||
| warnings | No | ||
| truncated | No | ||
| bytes_read | No | ||
| start_line | No | ||
| total_bytes | No | ||
| total_lines | No | ||
| output_bytes | No | ||
| output_lines | No | ||
| truncated_by | No | ||
| next_start_line | No | ||
| revision_algorithm | No | ||
| first_line_exceeds_limit | No |