Read File
readRead a text file with line numbers and optional line ranges to view exact current contents. Use after edits only when final content is required.
Instructions
Read a specific text file with line numbers. Avoid rereading files after write/edit/apply_patch unless exact final content is needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to workspace root. | |
| end_line | No | Last line to read. Default: end of file. | |
| max_bytes | No | Maximum file bytes. Capped by server config. | |
| start_line | No | First line to read. Default: 1. | |
| workspace_id | No | Workspace id from open_workspace. Omit to use the workspace selected for this MCP session. |