extract_custom_v1_documents_custom_post
Extract structured data from PDFs by defining a custom JSON schema. Provide the PDF via URL or base64, then receive deterministic extraction enforced to your schema.
Instructions
Process a PDF with a user-defined JSON Schema.
Cost: 10 credits.
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": {
"dynamic_schema": "<dynamic_schema>"
},
"name": "extract_custom_v1_documents_custom_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdf_url | No | URL to the PDF file | |
| pdf_base64 | No | Base64 encoded PDF string | |
| dynamic_schema | Yes | JSON Schema (JSON Object) to enforce on the extraction |