Tool Locate Text
tool_locate_textFind where text appears in a PDF: returns page numbers and coordinate boxes (PDF points, top-left origin) to pinpoint content or prepare redaction. Normalized matching handles Chinese and cross-word English.
Instructions
定位文本出现的页面与坐标框(PDF 点、左上原点)——找内容在哪、给 redact 量坐标的地基。
中文无分词、英文跨词均可命中(NFKC 归一化去空白匹配)。
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>",
"query": "<query>"
},
"name": "tool_locate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| pages | No | ||
| query | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||