search_documents
Query a specified index with a custom search body to retrieve matching records from Elasticsearch or OpenSearch data.
Instructions
Search for documents.
Args:
index: Name of the index
body: Search 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": {
"index": "<index>",
"body": "<body>"
},
"name": "search_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| index | Yes |