get_document
Fetch a complete knowledge document by repository path, including metadata, content hash, and links, to read full sources, follow references, or prepare updates.
Instructions
Return one knowledge document in full (title, tags, the complete source file with front matter, its content_hash, last-updated date, and the documents it links to and is linked from) by the doc_path given in search or bundle results. Use it when a section is not enough, to follow a link, or before proposing an update: to edit a document, change source and pass the full result to propose_update with base_content_hash = content_hash. Read-only; not-found for unknown paths, forbidden outside the requested scopes.
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_path": "<doc_path>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopes | No | Optional guard: the document must belong to one of these scopes, otherwise the call is refused. | |
| doc_path | Yes | Repository-relative path of the document exactly as returned in doc_path, e.g. domain/rules/refunds.md. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| tags | Yes | ||
| links | No | ||
| scope | Yes | ||
| title | Yes | ||
| source | No | ||
| tokens | Yes | ||
| content | Yes | ||
| backlinks | No | ||
| content_hash | Yes | ||
| front_matter | Yes |