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).
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 |