read_file
Read a UTF-8 text file from the workspace to inspect its content before making edits. Supports specifying line ranges or byte limits for targeted reading.
Instructions
Read a UTF-8 text file under the workspace. Use before editing when content is unknown. Optional start_line/end_line (1-based inclusive). Optional max_bytes override.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| end_line | No | ||
| max_bytes | No | ||
| start_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |