get_index
Retrieve a PDF index and perform semantic search. Provide a query to return relevant pages, or omit to see all indexed pages.
Instructions
获取 PDF 文件索引,支持语义搜索
Args: file_path: PDF 文件的完整路径 query: 搜索查询(可选)。如果提供,返回最相关的页面;否则返回全部索引 top_k: 返回结果数量,默认 5(仅在有 query 时生效)
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_path": "<file_path>"
},
"name": "get_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| top_k | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||