read_files
Load one or multiple project files by passing a single path or path array; use line ranges for one file and truncation controls for batch reads.
Instructions
Read one or more files. Pass a single path or array of paths. Supports line ranges for single files and truncation for batch reads.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Single file path relative to project root | |
| paths | No | Multiple file paths for batch read | |
| end_line | No | End line for single file (inclusive) | |
| start_line | No | Start line for single file (1-indexed) | |
| max_lines_per_file | No | Truncate each file in batch mode (default: 200) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes |