Document apiReferenceClipboard
clipboard.serializeSelection
Serialize the current or supplied model selection into text/plain, text/html, and application/x-superdoc-v2-fragment clipboard payloads.
read-onlyidempotent
doc.clipboard.serializeSelection(…)Expected result
Returns a ClipboardSerializeResult containing the payload and normalized insert plan.
Inputs
targetobjectincludeHtmlbooleanResult
Output fields
payloadobjectrequiredplanobjectrequiredwarningsunknown[]Failures
Non-applied receipt codes
INVALID_TARGETCAPABILITY_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