get_index_mapping
Get the field mapping (schema) for an OpenSearch index, listing all fields and their data types. Use it to understand index structure before querying or analyzing logs.
Instructions
Get the field mapping (schema) for an index, showing all fields and their types.
Args: index: Name of the index (e.g. 'filebeat-2024.01.15' or 'logs-*').
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_index_mapping"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |