get_document_by_id
Retrieves a document by its ID from the specified Couchbase bucket, scope, and collection; raises an exception when the document is missing.
Instructions
Get a document by its ID from the specified scope and collection. If the document is not found, it will raise an exception.
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": {
"bucket_name": "<bucket_name>",
"scope_name": "<scope_name>",
"collection_name": "<collection_name>",
"document_id": "<document_id>"
},
"name": "get_document_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope_name | Yes | ||
| bucket_name | Yes | ||
| document_id | Yes | ||
| collection_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||