index_query
Find stored documents most similar to your query using an in-memory index. Specify top_k to control the number of results returned.
Instructions
Query the in-memory index for the most similar stored documents.
Args: query: The search query. top_k: Number of results to return.
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": {
"query": "<query>"
},
"name": "index_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No |