Read one function, or a file outline
read_codeRead code without opening whole files. With symbol: just that function, method or class (numbered lines). Without: the file's outline (every declaration with its signature and line range). Use instead of reading a full file.
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>",
"repository": "<repository>"
},
"name": "read_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repo-relative file path. | |
| symbol | No | Function, method or class name, e.g. "refresh" or "AuthController.refresh". | |
| repository | Yes | Public GitHub repository as "owner/name" (e.g. "pallets/flask") or its github.com URL. |