view_file
Display a repository file with line numbers and paging controls so you can inspect specific sections of long files. Use start and end line parameters to read up to 200 lines per call.
Instructions
Show a file with line numbers, at most 200 lines per call. Use start_line/end_line to page through longer files; the header tells you the total number of lines. Paths are relative to the repository root. Errors if the file does not exist or the path leaves the repository.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "view_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| end_line | No | ||
| start_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |