MCP tools: remote-sanity-drafts
remote-sanity-drafts
Registered when: see MCP tools.
sanity_draft_status
Read back the original Sanity draft with current creator, CMS, source and connection permissions. Unknown remains a hold; never retries a write or claims publication.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | yes | |
operationId | string | yes |
Example call:
{"name":"sanity_draft_status","arguments":{"projectId":"<projectId>","operationId":"<operationId>"}}
Related: sanity_prepare_draft.
sanity_prepare_draft
Prepare only an existing qualified publisher CMS draft in an explicitly installed Sanity destination. Stable operationId, exact qualification and CMS revision required. Current CMS and scoped vault access apply. Replays only read the original remote ID. Never publishes, approves or sends. No tokens in arguments.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | yes | |
operationId | string | yes | |
documentId | string | yes | |
destinationId | string | yes | |
expectedDestinationRevision | integer | no | |
expectedQualificationHash | string | yes | |
expectedRevision | integer | yes | |
dataset | string | yes |
Example call:
{"name":"sanity_prepare_draft","arguments":{"projectId":"<projectId>","operationId":"<operationId>","documentId":"<documentId>","destinationId":"<destinationId>","expectedQualificationHash":"<expectedQualificationHash>","expectedRevision":1,"dataset":"<dataset>"}}
Related: sanity_draft_status.