search_document
Searches text inside PDF, Word, Excel, or CSV files and returns matching page numbers with surrounding context, so long documents can be located without reading them in full.
Instructions
在文档里搜索文本,返回命中的页码和上下文。长文档不必整份读进来,先用它定位。
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": "search_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 文档路径 | |
| limit | No | 最多返回多少条命中 | |
| query | Yes | 要查找的文本,不区分大小写 | |
| context_chars | No | 命中处前后各保留多少字符 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |