Answer a question from a document (AI)
answer_from_documentAnswer a question grounded ONLY in a source document — a web page, PDF, Office file, or raw text. Provide 'question' plus ONE source: 'url', 'pdf', 'file' (base64), or 'text'. Says so when the answer isn't in the document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | A file_id from a prior tool, or a base64-encoded PDF. | ||
| url | No | A public http/https URL to read. | |
| file | No | A base64-encoded .docx, .xlsx or .csv file. | |
| text | No | Raw text to answer from directly. | |
| question | Yes | The question to answer from the document. |