doc_bulk_simple
Perform bulk indexing operations to add multiple documents to an Elasticsearch/OpenSearch-compatible database using simplified parameters for efficient data insertion.
Instructions
简化的批量写入(仅支持 index 操作)
参数:
index: 索引名称
documents: 文档列表
refresh: 刷新策略
示例:
doc_bulk_simple("products", [
{"name": "A", "price": 100},
{"name": "B", "price": 200}
])
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>",
"documents": "<documents>"
},
"name": "doc_bulk_simple"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| documents | Yes | ||
| refresh | No |