index_document
Creates or updates a document in a specified index, optionally using a document ID, to store or modify records for search and retrieval.
Instructions
Creates or updates a document in the index.
Args:
index: Name of the index
document: Document data
id: Optional document ID
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": "index_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| index | Yes | ||
| document | Yes |