Search documents
searchSearch a single Elasticsearch index using a Query DSL body; matching fields are highlighted and results paginate via size and from parameters.
Instructions
Search one index with a query DSL body. Matching text fields are highlighted. Paging goes inside queryBody (size, from); size is capped at 100 per call, so page with from for more.
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>",
"queryBody": "<queryBody>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index to search | |
| queryBody | Yes | Query DSL body: query, size, from, sort, aggs, _source. |