alefba_read_document_callback
Submit a document URL and receive OCR results via webhook callback. Eliminates polling by posting result to your callback URL when processing completes.
Instructions
Read a document and receive the result via webhook (callback). پردازش سند و دریافت نتیجه از طریق وبهوک. Instead of polling, Alefba POSTs the result to callback_url when done. Returns {state:'processing', document_url} immediately. Optional name of the configured Alefba instance to target. Omit to use the default instance.
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": {
"document_url": "<document_url>",
"callback_url": "<callback_url>"
},
"name": "alefba_read_document_callback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_url | Yes | ||
| callback_url | Yes | ||
| instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||