ocr-pdf-auto-legacy
Extract text from PDFs using OCR with language detection and page selection options to convert scanned documents into editable text.
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": "<file>"
},
"name": "ocr-pdf-auto-legacy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | PDF 文件路径 | |
| pages | No | 页码范围('first', 'last', 'all', '1-3', '1,3,5'),默认 'first' | |
| language_type | No | 语言类型,默认 CHN_ENG | |
| detect_direction | No | 是否检测图像方向,默认 false | |
| detect_language | No | 是否检测语言,默认 false |