Extract Data from Image or PDF
extract_dataExtract structured data from an image using a predefined layout. Uses AI cascade strategy for optimal cost-accuracy balance.
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": {
"project_id": "<project_id>",
"image_url": "<image_url>"
},
"name": "extract_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes | URL of the image to process (HTTPS URL) | |
| project_id | Yes | UUID of the project (required) | |
| extraction_mode | No | Extraction mode: 'ocr' for text recognition (default), 'image_recognition' for visual analysis of images without text |