alefba_read_document_upload
Upload a local file and extract text using OCR. Returns structured results for Persian, Arabic, and English text.
Instructions
Upload a local file and read (OCR) it. بارگذاری فایل محلی و استخراج متن آن. Sends the file as multipart form data (field 'document') to Alefba with the same options as alefba_read_document. Returns the structured OCR result, or {state, task_ids} when wait=false. 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": {
"file_path": "<file_path>"
},
"name": "alefba_read_document_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| type | No | general | |
| fix_orientation | No | ||
| word_positions | No | ||
| wait | No | ||
| priority | No | ||
| instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||