viewFile
Read file contents with line numbers and slice by line range or byte limits. Specify target file and optional start/end lines to view specific sections.
Instructions
Read contents of a file with line numbering and bounded slicing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | No | Ending line (1-indexed, inclusive). | |
| maxBytes | No | Max bytes allowed in output. | |
| maxLines | No | Max lines to view at once. Default 800. | |
| startLine | No | Starting line (1-indexed, inclusive). | |
| targetFile | Yes | Absolute or workspace-relative path. |