Tool Batch Ocr
tool_batch_ocrProcess multiple PDFs in a batch by running OCR and writing searchable text back into each file. Accepts file paths or directories, continues on individual errors, and returns per-file results.
Instructions
批量 OCR 写回:inputs 为文件路径或目录(取全部 PDF)。单文件失败不中断,逐文件返回结果。
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": {
"inputs": "<inputs>"
},
"name": "tool_batch_ocr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| deskew | No | ||
| inputs | Yes | ||
| out_dir | No | ||
| redo_ocr | No | ||
| overwrite | No | ||
| max_retries | No | ||
| per_file_timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||