Tool Is Searchable
tool_is_searchableCheck if a PDF has an extractable text layer to decide between direct text extraction and OCR. Use this first to route your PDF processing workflow.
Instructions
智能路由入口:判断 PDF 是否已有可提取文本层,返回建议动作(extract_text 或先 ocr_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": {
"path": "<path>"
},
"name": "tool_is_searchable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| sample_pages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||