read_file
Retrieves a file's exact text content for direct use in edits or review. Supports line range selection for large files and never returns credential files.
Instructions
Read a file as text. Returns exact file content (no line numbers by default) so it can be copied verbatim into edit_file anchors. For large files pass start_line/end_line, or use search_code first to find the region worth reading. Credential files (.env, keys, cloud config) are never returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the workspace root. | |
| end_line | No | 1-based last line to return. | |
| workspace | No | Workspace alias. Defaults to the active workspace. | |
| start_line | No | 1-based first line to return. | |
| line_numbers | No | Prefix each line with its number. Navigation aid only — do NOT copy numbered text into edit_file. Default false. |