clipboard.insert
Insert a parsed clipboard plan, v2 fragment, or raw ClipboardPayload through the v2 pasteFragment kernel operation.
doc.clipboard.insert(…)Expected result
Returns a ClipboardInsertResult with inserted refs, diagnostics, and one paste transaction receipt, or a named fail-closed reason.
Inputs
payloadobjectplanobjectfragmentobjecttargetobjectchangeMode"direct" | "tracked"fallback"reject-rich" | "plain-with-warning"Result
Output fields
true
status"NO_OP"changeTagstringCaller correlation for this commit only; never persisted or replayed on Undo/Redo.
temporaryobjectFields
idstringrequiredphase"begin" | "replace" | "rollback" | "commit"requiredtagstringrequiredonNativeEdit"cancel" | "preserve"cancelledBy"native-edit"appliedChangeMode"direct" | "tracked"idstringinsertedEntityAddress[]updatedEntityAddress[]removedEntityAddress[]invalidatedRefsAffectedRef[]remappedRefsAffectedRefRemapping[]affectedStoriesStoryLocator[]textRangeShiftsTextRangeShift[]trackedTextRangeShiftsTrackedTextRangeShift[]txIdstringwarningsReviewWarning[]effectsReceiptEffectsFields
insertedTextTextMutationEffect[]insertedBlocksBlockMutationEffect[]resultTextTextTargetFields
captureStatestringOpaque browser selection capture state. Preserve it when passing a selection target to comments.create. Changed or unverifiable state is refused before writing.
kind"text"requiredsegmentsTextSegment[]requiredstoryStoryLocatorStory scope. Defaults to document body when omitted. Use {kind:'story', storyType:'body'} for body, or other storyType values for headers, footers, footnotes, endnotes.
body
kind"story"requiredstoryType"body"requiredheaderFooterSlot
kind"story"requiredstoryType"headerFooterSlot"requiredsectionSectionAddressrequiredheaderFooterKind"header" | "footer"requiredvariant"default" | "first" | "even"requiredresolution"effective" | "explicit"onWrite"materializeIfInherited" | "editResolvedPart" | "error"headerFooterPart
kind"story"requiredstoryType"headerFooterPart"requiredrefIdstringrequiredfootnote
kind"story"requiredstoryType"footnote"requirednoteIdstringrequiredendnote
kind"story"requiredstoryType"endnote"requirednoteIdstringrequiredtextbox
kind"story"requiredstoryType"textbox"requiredtextboxIdstringrequiredcoordinateSpaceTextCoordinateSpacetrackedChangeRefsTrackedChangeAddress[]trackedChangeCountintegerchangedbooleansuccesstruerequiredplanobjectrequiredFields
sourceKind"superdoc-v2-fragment" | "superdoc-v1-slice" | "html" | "rtf" | "image" | "file" | "plain-text" | "empty" | "unknown"requiredblockCountintegerrequiredassetCountintegerrequiredimageRefCountintegerrequiredplainFallbackbooleanrequireddiagnosticsobject[]requiredfalse
successfalserequiredfailureobjectrequiredFields
code"INVALID_INPUT" | "INVALID_TARGET" | "INVALID_PAYLOAD" | "EMPTY_FRAGMENT" | "INVALID_FRAGMENT" | "CAPABILITY_UNSUPPORTED" | "CAPABILITY_UNAVAILABLE" | "REVISION_MISMATCH" | "PRECONDITION_FAILED"requiredmessagestringrequireddetailsunknownFailures
Pre-apply throws
TARGET_NOT_FOUNDINVALID_TARGETINVALID_INPUT
1 more codes
CAPABILITY_UNAVAILABLE
Non-applied receipt codes
INVALID_INPUTINVALID_TARGETINVALID_PAYLOAD
6 more codes
EMPTY_FRAGMENTINVALID_FRAGMENTCAPABILITY_UNSUPPORTEDCAPABILITY_UNAVAILABLEREVISION_MISMATCHPRECONDITION_FAILED
Raw schemas
Open the generated JSON artifact for the exact input, output, success, and failure schemas represented by this contract version.
View raw JSON schemas