process_agent
Submit a document file for synchronous agentic extraction. Uploads the file, waits, and returns extracted data directly—no job polling required.
Instructions
Submit a document for SYNCHRONOUS agentic extraction via DocuProx. Reads the file from disk, uploads as multipart/form-data, and waits for the result. Returns the extracted data directly (no job polling needed). Credits are deducted and refunded on failure.
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": {
"file_path": "<file_path>",
"prompt_json": "<prompt_json>",
"document_type": "<document_type>"
},
"name": "process_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute or relative path to the document on disk. | |
| prompt_json | Yes | Extraction schema (JSON object or string). Required. | |
| document_type | Yes | Document category, e.g. 'invoice', 'passport'. Required. | |
| static_values | No | Key-value pairs overriding STATIC template placeholders. | |
| custom_instructions | No | Free-text instructions to guide extraction. |