read_file
Read a file from your codebase by relative path, optionally limiting the output to a specific line range. Returns the file's text content for analysis or targeted edits.
Instructions
Reads the given file or a chunk of it. Generally, symbolic operations like find_symbol or find_referencing_symbols should be preferred if you know which symbols you are looking for. Returns the full text of the file at the given relative path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_line | No | The 0-based index of the last line to be retrieved (inclusive). If None, read until the end of the file. | |
| start_line | No | The 0-based index of the first line to be retrieved. | |
| relative_path | Yes | The relative path to the file to read. | |
| max_answer_chars | No | If the file (chunk) is longer than this number of characters, no content will be returned. Don't adjust unless there is really no other way to get the content required for the task. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |