Read file
read_fileRead a file's text content with optional line range. Returns line-numbered content and total line count.
Instructions
Read the text content of a file under the root. Optionally scope to a 1-indexed, inclusive line range via startLine/endLine. Returns the content with 1-indexed line numbers prefixed, plus the file's total line count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to root | |
| endLine | No | 1-indexed end line, inclusive. Defaults to end of file | |
| startLine | No | 1-indexed start line, inclusive. Defaults to 1 |