{"version":"2.1.326","anchor":"plugin-ui-surface-protocol-ui-attach-ui-render-ui-press","canonical_anchor":"plugin-ui-surface-protocol-ui-attach-ui-render-ui-press","heading":"Plugin-drawn interfaces get a full set of requests in desktop, mobile and VS Code","tier":"notice","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/plugin-ui-surface-protocol-ui-attach-ui-render-ui-press","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Plugin-drawn interfaces get a full set of requests in desktop, mobile and VS Code\n\nClaude Code now handles a full set of requests for showing, pressing, typing into and scrolling plugin interfaces in connected apps\n\n**Unclear.** Which setting turns this interface channel on is not known.\n\n**What**\n\nApps connected to Claude Code could already ask it to draw part of the interface with `ui_render`. Claude Code now handles a much wider set of these requests, so a plugin's interface can be shown and used in a connected app:\n\n- `ui_attach` and `ui_detach`, to connect or disconnect a surface, which must be `desktop`, `mobile` or `vscode`\n\n- `ui_render`, to draw the interface\n\n- `ui_press`, `ui_input` and `ui_select`, for clicks, typing and choices\n\n- `ui_prompt_edit`, `ui_scroll` and `ui_focus`\n\n- requests about panes (separate areas of the screen)\n\nClaude Code also sends messages back, such as `ui_invalidate`, `ui_panes` and `ui_toast`, and can ask a connected app to do things like `ui_copy` and `ui_prompt_fill`. All of this works only when Claude Code's output is set to stream-json, a machine-readable format apps use to talk to it.\n\n**Why**\n\nThis is how plugins can draw interfaces inside the desktop app, the mobile app and VS Code.\n\n- Area: Plugins\n- Names: `ui_render`\n- Tier: You'll notice\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}