read_document
Read an indexed document snapshot to retrieve the version captured at indexing time. Pass the source_hash to reject stale citations and ensure accuracy.
Instructions
Read an indexed source snapshot. Pass the search source_hash to reject stale citations.
Source files may have changed since indexing; this returns the indexed version.
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": {
"doc_id": "<doc_id>"
},
"name": "read_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| max_chars | No | ||
| start_line | No | ||
| source_hash | No |