Document apiReferenceClipboard
clipboard.parse
Parse and sanitize a ClipboardPayload into a deterministic v2 clipboard insert plan with diagnostics. Does not mutate the document.
read-onlyidempotent
doc.clipboard.parse(…)Expected result
Returns a ClipboardParseResult with a ClipboardInsertPlan or a named fail-closed reason.
Inputs
itemsobject[]required1 additional input field
sourcestringResult
Output fields
successbooleanplanobjectdiagnosticsunknown[]failureobjectFailures
Non-applied receipt codes
INVALID_INPUTINVALID_PAYLOADEMPTY_FRAGMENT
3 more codes
CAPABILITY_UNSUPPORTEDINVALID_FRAGMENTCAPABILITY_UNAVAILABLE
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