search
Execute Query DSL queries against Elasticsearch indices to retrieve, filter, sort, or aggregate documents; omit the request body to fetch the first 10 results.
Instructions
Run a Query DSL search. body is the full _search request body, for example
{"query": {"match": {"title": "shoes"}}, "size": 5}. Aggregations, sort and _source filtering work as
usual; omit body to get the first 10 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>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| index | Yes |