{"version":"2.1.331","anchor":"plugin-runtime-gains-uicopy-themeset-and-sessionidentity","canonical_anchor":"plugin-runtime-gains-uicopy-themeset-and-sessionidentity","heading":"Plugins can now call ui.copy, theme.set and session.identity, and read version-control state at session scope","tier":"internal","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/plugin-runtime-gains-uicopy-themeset-and-sessionidentity","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Plugins can now call ui.copy, theme.set and session.identity, and read version-control state at session scope\n\nThe plugin host now handles ui.copy and theme.set instead of refusing them, adds session.identity, moves vcs reads to session scope and adds new plugin fields\n\n**What**\n\nPlugins are add-ons that extend Claude Code. The plugin host is the part of Claude Code that answers their requests. In this release the host answers more of those requests, and plugins can pass more data back:\n\n- `ui.copy` and `theme.set` are now handled by the host. Before, the host's table had `theme.clear` but not these two, and its permission table listed `theme.set` and `ui.copy` as \"refused\". Those refused entries are removed.\n\n- `theme.set` now accepts a `loadsThere` callback, which is used when a hook is registered.\n\n- `session.identity` is added to the session abilities a plugin can ask for.\n\n- `vcs.detect`, `vcs.diff`, `vcs.list` and `vcs.status` now sit in the `session` scope. These calls read version-control information, such as the state of a git repository. `vcs.list` and `vcs.status` were `host` before.\n\n- A `ReadModVcs` tool is added.\n\n- The `notTheList` slot filter now leaves out `BesidePrompt` and `Underlay` as well as `AbovePrompt`.\n\n- MCP tool calls can now carry watched-file events. MCP is the protocol Claude Code uses to talk to outside tool servers.\n\n- A new `anthropic\/cardDirectory` key appears.\n\n- The plugin result data gains `surface`, `shaders`, `provedUnder`, `madeByCommand` and `hooksWorktrees`.\n\n- Plugin feature flags are now set from a `featureFlags` option.\n\n**Why**\n\nPlugins can now copy text, change the theme through the host and read the session identity. Before, the theme and copy calls were refused. The version-control read calls have moved from host scope to session scope, which changes which callers are allowed to use them.\n\n- Area: Plugins\n- Tier: Under the hood\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}