read_file
Reads a file and marks it as active while automatically summarizing inactive files to their public interfaces, reducing context size for supported programming languages.
Instructions
Read a file and mark it as the active file. When you switch to a different file, the previous file is automatically summarized to just its public interface, reducing context size.
Supported languages for summarization: .rs, .py, .ts, .tsx, .js, .jsx, .php, .cs, .gd
For unsupported file types, returns full contents without tracking (same as standard file read).
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to read (absolute or relative) |