{"version":"2.1.337","anchor":"artifact-pre-publish-rules-enforcement-and-room-send-tool-d","canonical_anchor":"artifact-pre-publish-rules-enforcement-and-room-send-tool-d","heading":"Artifact tool drops room_send and preview, and can refuse a publish under rules","tier":"notice","area":"Artifacts","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/artifact-pre-publish-rules-enforcement-and-room-send-tool-d","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Artifact tool drops room_send and preview, and can refuse a publish under rules\n\nThe artifact tool loses its room_send broadcast and preview actions, and its publisher can now follow server rules and refuse an upload\n\n**Unclear.** Whether broadcasting to viewers still works, or is only no longer described to the model, is not clear.\n\n**What**\n\nThe artifact tool is the tool Claude uses to publish shareable pages or small apps. It loses its room capability, which let Claude broadcast a message to whoever was viewing a published page at that moment. It also loses its preview action.\n\n- `room_send` is removed from the artifact tool's actions, together with its `topic` field and the room part of the `data` field's description. `data` is now only used for `write_db`.\n\n- `roomOn` no longer adds `room_send` to the tool, the `room_send` line is gone from the tool description, and the branch that handled a permission failure for `room_send` is removed.\n\n- `CLAUDE_CODE_ARTIFACT_ROOM`, an environment variable (a setting passed in from your shell), no longer appears in Claude Code's list of environment variable names.\n\n- `preview` and its `previewOn` option are removed from the tool's schema, the description of what the tool accepts.\n\n- Old conversations that used these actions still load. The actions are now refused with 'preview is not available in this build' or 'room_send is not available in this build'.\n\n- The artifact upload client reads a `rules` flag from the server's answer (`takesRules`). A new `refuse()` method ends an upload as 'refused', and the publish code can refuse and redraft after a denial.\n\n- Separately, a `chartNote` host option makes auto-chart results attach a note to the tool's context instead of drawing the chart in the host app.\n\n**Why**\n\nAnything that relied on Claude sending messages to live viewers of an artifact, or on the preview action, no longer works in this build. Saved conversations that used them can still be opened, and show a clear refusal instead of failing to load.\n\n- Area: Artifacts\n- Names: `room_send`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}