Changes data

quotecloud_apply_patch_plan

Re-fetch live authoring state, re-run validation server-side, compare touched parent revisions with the supplied snapshot, then apply the plan atomically in one Convex mutation. dryRun acquires no authoring lease, lock, or session and never changes document content, but its report can become stale immediately. Plans containing deletes require confirmation; the registry marks this tool dangerous so the shared dispatcher can enforce that policy.

Inputs

documentIdRequired
Convex document ID or company-scoped numeric display ID. string
snapshotRequired
object
planRequired
object
dryRunOptional
boolean
lockTokenRequired
Stable opaque token for this agent edit session. Reuse it to heartbeat owned element locks. string
confirmTokenOptional
One-time code from the preview. Send it with otherwise identical inputs to run the change. string