extract_fields
Extract structured values from local documents into a JSON Schema with page citations, including long lists or tables via array mode.
Instructions
Extract structured values from a local document into a JSON Schema, with citations.
schema: a JSON Schema object (type "object" with properties). instructions: optional guidance for the
extraction. array_extract: true for long lists or tables that span many pages.
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": {
"path": "<path>",
"schema": "<schema>"
},
"name": "extract_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | engine | |
| path | Yes | ||
| schema | Yes | ||
| instructions | No | ||
| array_extract | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||