doc_exists
Check if a document exists in an Easysearch index by providing the index name and document ID. Use this tool to verify document presence before performing operations.
Instructions
检查文档是否存在
参数:
index: 索引名称
id: 文档 ID
routing: 路由值
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>",
"id": "<id>"
},
"name": "doc_exists"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| id | Yes | ||
| routing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |