Read a document
get_documentRead the full text of one uploaded document of a knowledge base, in order, about 30 passages per call. Use it when a search result is relevant but you need more context. Acts of law are not documents and are read by provision. Pass the kb address and the work_id; an answer with next_offset continues from that offset. A page counts as several searches against the user's plan (one per default number of search results), and some knowledge bases allow search only.
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": {
"kb": "<kb>",
"work_id": "<work_id>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kb | Yes | Address of the knowledge base, "owner/name", from list_knowledge_bases. | |
| offset | No | Passage to start from. | |
| work_id | Yes | The document's work_id (unit.work_id in search results, or list_sources). |