read_file
Read the content of a project file. Use offset and limit to read a specific range of lines, returning line-numbered output for precise editing with patch_file.
Instructions
Read the content of a project file.
Pass offset/limit to read a range of lines — useful for large files where the whole file would blow the context window. When either is set, the response includes cat -n style line-numbered content so subsequent patch_file calls can reference exact line numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Project ID (e.g. proj_a8Kq7fR2xZ) | |
| path | Yes | File path relative to project root | |
| offset | No | Starting line number (1-indexed). Omit to read from start. | |
| limit | No | Max number of lines to return. Omit to read to end. |