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

targetobject
includeHtmlboolean

Result

Output fields
payloadobjectrequired
planobjectrequired
warningsunknown[]

Failures

Non-applied receipt codes

  • INVALID_TARGET
  • CAPABILITY_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