Ask Question About Document
document_queryAsk a natural-language question about a document image; returns a grounded answer plus the supporting line.
Returns found:false rather than guessing when the document doesn't contain the answer.
Returns: dict with keys: answer (str|null), found (bool), supporting_text (str|null), text (str).
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": {
"image": "<image>",
"question": "<question>"
},
"name": "document_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Base64-encoded PNG/JPEG of the document page | |
| question | Yes | The natural-language question about the document |