Extract document
extract_documentExtract structured fields from an image (vision) or text against a declared schema. Provide fields and one of image_url or text. Stores the result for review; returns the extracted JSON.
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": {
"fields": "<fields>"
},
"name": "extract_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Raw text to extract from (alternative to image_url). | |
| fields | Yes | Fields to extract: [{name, description?, type?}]. | |
| image_url | No | Public URL of an image/scan to read (vision). | |
| source_ref | No | ||
| instructions | No | Optional extra guidance. |