search_documents
Query Elasticsearch indices to retrieve matching documents using an index, search body, and optional cluster for application or analysis needs.
Instructions
Search for documents.
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 | Search query | |
| index | Yes | Name of the index | |
| cluster | No | Optional cluster name. Uses the default cluster if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||