es_index_document
Insert a single document into an Elasticsearch index. Use optional doc_id to set the ID, or omit it for an auto-generated one.
Instructions
Index one Elasticsearch document. Omit doc_id to let Elasticsearch assign one.
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>",
"document_json": "<document_json>"
},
"name": "es_index_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| doc_id | No | ||
| session_name | No | default | |
| document_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |