vision_document
Extract answers from PDFs, Office files, and text documents by asking questions. Accepts URLs, file paths, or data URIs and returns text-based answers for complex tables, charts, and reports.
Instructions
Ask questions about documents (pdf/doc/docx/xls/xlsx/ppt/pptx/txt/md/csv).
Great for reports, papers, spec sheets, and extracting data from complex tables and charts embedded in documents.
Args: files: Document references. Each item may be an http(s) URL, a local file path, or a data:application/...;base64 data URI. prompt: The question or instruction, e.g. "Summarize the key findings." / "What is the maximum value in the table on page 2?". model: Optional model name override (e.g. glm-4.6v). Defaults to the server's configured VISION_MODEL. max_tokens: Optional cap on the response length. thinking: Enable the reasoning chain (Zhipu glm-4.6v+; ignored by other providers that don't support it). Useful for complex charts/docs.
Returns: The model's text answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| model | No | ||
| prompt | Yes | ||
| thinking | No | ||
| max_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |