read_file
Read file contents from a cloned repo by specifying a path relative to the repo root. Provides code context for analysis.
Instructions
Read a file from the cloned repo. Path is relative to repo root. Call ensure_repo first. Resets idle timer.
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 relative to repo root |