get_document
[Documents]
Read a complete current or specified historical document by ID or collection and key.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| spaceId | string | Yes | Workspace ID from list_spaces. |
| collectionId | string | No | Collection of the document, together with key. Use instead of documentId. |
| documentId | string | No | Document ID. Use instead of collectionId and key. |
| key | string | No | Document key, together with collectionId. Use instead of documentId. |
| revision | string | No | Read this historical revision instead of the current one. |
Examples
Replace the sample IDs with values from your store. Use a fresh UUID for each requestId.
Read a document by its collection and key.
Arguments
{
"spaceId": "11111111-1111-4111-8111-111111111111",
"collectionId": "33333333-3333-4333-8333-333333333333",
"key": "deploy-window"
}Full MCP request
Full MCP request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_document",
"arguments": {
"spaceId": "11111111-1111-4111-8111-111111111111",
"collectionId": "33333333-3333-4333-8333-333333333333",
"key": "deploy-window"
}
}
}