Document apiReferenceClipboard
clipboard.insert
Insert a parsed clipboard plan, v2 fragment, or raw ClipboardPayload through the v2 pasteFragment kernel operation.
mutates documenttracked modedry runnon-idempotent
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
successtruerequiredidstringinsertedEntityAddress[]updatedEntityAddress[]removedEntityAddress[]invalidatedRefsAffectedRef[]remappedRefsAffectedRefRemapping[]affectedStoriesStoryLocator[]textRangeShiftsTextRangeShift[]txIdstringfalse
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