read_file
Read a file from a repository by specifying a path and optional line range to retrieve exact content for targeted code inspection.
Instructions
Read text content from a file inside the repository with line windowing.
Args: path: Relative path to the file inside the repository. start_line: 1-indexed starting line number (default: 1). end_line: 1-indexed ending line number (default: None, reads up to 1000 lines).
Returns: JSON string containing path, line numbers, content, and truncation status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| end_line | No | ||
| start_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |