Read a document's file
get_document_fileThe original file of one document, for reading it yourself: a PDF comes back as the file, a picture as an image, a text or CSV file as text. Use it when get_document_data does not have the answer, to check a value against the original, or when the user asks to see or read the document. Prefer get_document_data first: it is smaller and already structured. Only documents with downloadable true in list_documents have a file. PDFs up to 5 MB, pictures up to 3.75 MB and text up to 200 KB can be sent; spreadsheets and other formats cannot be read here, so use get_document_data for them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | A document id such as "doc_45", as returned by list_documents. |