Alpha: Document API is currently alpha and subject to breaking changes.
Summary
Dry-run a mutation plan, returning resolved targets without applying changes.- Operation ID:
mutations.preview - API member path:
editor.doc.mutations.preview(...) - Mutates document:
no - Idempotency:
idempotent - Supports tracked mode:
no - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a MutationsPreviewOutput with resolved targets and step details without applying changes.Supported step operations
Use these values insteps[].op when authoring mutation plans.
Assert
Text
Format
Create
Tables
The runtime capability snapshot also exposes this allowlist at
planEngine.supportedStepOps.
Input fields
Example request
Output fields
Example response
Pre-apply throws
REVISION_MISMATCHMATCH_NOT_FOUNDAMBIGUOUS_MATCHSTYLE_CONFLICTPRECONDITION_FAILEDINVALID_INPUTCROSS_BLOCK_MATCHSPAN_FRAGMENTEDTARGET_MOVEDPLAN_CONFLICT_OVERLAPINVALID_STEP_COMBINATIONREVISION_CHANGED_SINCE_COMPILEINVALID_INSERTION_CONTEXTDOCUMENT_IDENTITY_CONFLICTCAPABILITY_UNAVAILABLE
Non-applied failure codes
- None
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema

