Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.280 ·

New ui.copy plugin API for writing to the clipboard

Plugins can now copy text to the terminal clipboard through a new ui.copy action

TierUnder the hoodhow much it should matter to you
Useful2my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaPluginswhat it touches
KindInternal Changesin v2.1.280,
Group of 3 Under the hood No documentation found

Plugins can now copy text to the terminal clipboard through a new ui.copy action

What

  • A new $.ui.copy plugin-facing function copies text to the clipboard using OSC 52 (a terminal escape sequence for clipboard access), restricted to the terminal surface. It declines with a reason (no-surface or no-clipboard) when there's no attached UI or the text is too long for an OSC 52 write.
  • A matching ui.copy control-protocol action was added to the client, sending the text and an optional surface identifier over the same channel used for actions like ui.focus.
  • ui.copy was added to the capability list used by the plugin/hooks worker sandbox, alongside existing capabilities like ui.open, ui.close, ui.panes, ui.blit, fs.read, and fs.write.

Why This gives plugins and hooks a sanctioned way to put text on the user's clipboard, gated by the same capability and sandbox system as other UI actions, instead of needing a workaround.

Read from
Names in the bundleui.copy
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtThe finding infers this backs a copy-to-clipboard UI action but doesn't confirm what specifically triggers it.

See this entry in the whole of v2.1.280 →

Feedback