hydrate_chunks
Fetch full code bodies for facet search hits by passing hit_ids in a single batched call, returning exact indexed chunks instead of file reads.
Instructions
Fetch the full code bodies for facet search hits. After a search_code call with response_mode='facet' (which returns ranked metadata + headers but NO code), pass the hit_id values of the results you care about here — in ONE batched call — to get their exact code bodies. Cheaper and more precise than read_file: it returns exactly the indexed chunk(s), reconstructing merged ranges. Returns compact markdown by default; pass response_format='json' for the structured dict.
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": {
"ids": "<ids>"
},
"name": "hydrate_chunks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| source_id | No | ||
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |