For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-editor/classes/ClipboardManager.md.

Class: ClipboardManager

Beta

The ClipboardManager (accessible from the ExtensionContext) is responsible for the management of all ClipboardItem objects, and provides the user the ability to create new ClipboardItem objects for use within an extension.

Properties

clipboard

readonly clipboard: ClipboardItem

Beta

Remarks

The primary ClipboardItem object is always present (even if it's empty) and cannot be deleted. This object represents the main ClipboardItem object which is always accessible through the UI for cut/paste operations

Throws

This property can throw when used.

Methods

create()

create(): ClipboardItem

World Mutation Beta

Returns

ClipboardItem

Remarks

Create a new ClipboardItem object

Throws

This function can throw errors.