Get document details
get_documentGet one archival document (by id): full metadata, AI description, and OCR text, in 25k-char parts (follow next_offset). Pass a keyword to get ~2000-char excerpts around each match instead, useful for long documents.
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": {
"document_id": "<document_id>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Read from this character on: the previous part's next_offset | |
| keyword | No | Return excerpts around matches instead of the full OCR (accent-insensitive) | |
| document_id | Yes | ||
| max_excerpts | No | Default 10, max 25 | |
| context_chars | No | Default 2000, max 5000 |