SpecifyDocs

documents_execute

tools/call

Open or update a shared document, or read complete commit and revision pages. revision reads one retained revision's body (documentId, epoch, leaseId and revisionId from revisions, under the same revisions lease) without changing the document, so it can be checked before restore. Session receipts, epoch/version CAS, exact read leases and signed cursors are required by the selected operation.

Scopes

read:projects

Project documents need read:projects to read and write:projects to change. Work documents need write:work; Memory documents follow the Memory scopes.

Inputs

operation"open" | "head" | "append" | "name" | "restore" | "steps" | "revisions" | "revision"Required
payloadobjectRequired
Closed document operation input, including the public document identity.

Returns

The document head, commit or revision page. A call returns content[0].text with the JSON result and structuredContent.result with the same value.

Listed when

The connection has read:projects.