Get index mapping
get_mappingRetrieve field mappings for one or more Elasticsearch indices. Falls back to field capabilities when index metadata privileges are unavailable.
Instructions
Get the field mappings for one or more indices. Falls back to the read-level _field_caps API (field names and types) when the index "view_index_metadata" privilege is missing.
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": "get_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index name, comma-separated list, or pattern |