es_index_doc
Index a document into an Elasticsearch index, creating or overwriting it. Specify index name, document body, and optionally a document ID or connection.
Instructions
Index (create or overwrite) a document. Blocked when that connection's own readOnly mode is enabled.
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": "<document>"
},
"name": "es_index_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Document id. Auto-generated by Elasticsearch when omitted. | |
| index | Yes | Index name. | |
| document | Yes | Document body. | |
| connectionId | No | Id of the elasticsearch connection to use, from databases.config.yml. Optional when only one elasticsearch connection is configured. |