MCP tools: remote-sanity-drafts

All tool groups

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.

ParameterTypeRequiredDescription
projectIdstringyes
operationIdstringyes

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.

ParameterTypeRequiredDescription
projectIdstringyes
operationIdstringyes
documentIdstringyes
destinationIdstringyes
expectedDestinationRevisionintegerno
expectedQualificationHashstringyes
expectedRevisionintegeryes
datasetstringyes

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.

We use essential cookies to keep you signed in. See our Privacy Policy for details.