read_chunk
Read the current, HEAD-validated source text for a chunk ID, with compact call-graph context and related repo memories, so you can inspect exact code after a search.
Instructions
Read the current source text for one chunk id, validated against HEAD (relocates or flags stale/gone), with compact call-graph context and bound repo memories. Use to read exact text after a search returns a chunk_id. When the chunk's symbol has distilled decision records they attach as distilled_records (labeled unreviewed, capped at 2).
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": {
"chunk_id": "<chunk_id>"
},
"name": "read_chunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | What to include: `memories` (on by default). Pass `include: []` to suppress. | |
| chunk_id | Yes | ||
| worktree | No | Absolute path of the checkout to scope reads to — pass a linked worktree to read its branch overlay. Defaults to the server's working directory. A path that is not a linked worktree of this repo is silently ignored: results then come from the indexed checkout, with no error. | |
| graph_limit | No | ||
| include_graph | No | compact |