read_file_code
Read file contents with configurable encoding and line ranges for targeted code inspection.
Instructions
Read the contents of a file with optional encoding and line range
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": "read_file_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path to the file to read | |
| endLine | No | End line number (1-based, optional) | |
| encoding | No | File encoding (utf8, base64, etc.) | utf8 |
| startLine | No | Start line number (1-based, optional) | |
| maxCharacters | No | Maximum character count (default: 100,000) |