Skip to content

smelt.clipboard

Tier: Host — Available in every runtime, including headless mode.

Read and write the system clipboard.

smelt.clipboard.read

fun(): string?

Read the current clipboard contents as a string, or nil if empty/unavailable.

smelt.clipboard.write

fun(text: string): nil

Write text to the system clipboard. Raises if the clipboard backend is unavailable.