get_chunk
Read an indexed code chunk using a repository-relative file path and line number to retrieve source context.
Instructions
Read the indexed chunk containing a repository-relative file path and one-based line.
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": {
"file_path": "<file_path>",
"line": "<line>"
},
"name": "get_chunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Repository-relative file path exactly as shown in a search result or list_files. | |
| line | Yes | One-based line number inside the desired chunk. | |
| profile | No | Saved profile to use for source defaults. | |
| source | No | Git URL or local path. Omit only when the server has a default source. |