The artifact tool can advertise broadcasting to current viewers and reading their browser diagnostics.
A room capability and room_send broadcast, plus the verify diagnostics action, are declared in the tool schema rather than turned on.
What's wrong with this entry?
The artifact tool can declare a room capability, an at-most-once broadcast channel to whoever is currently viewing the page, sent with room_send carrying a topic and data, alongside the verify action that reads runtime diagnostics viewers' browsers captured for the current version.
- Both are feature-detected from the tool schema itself: rooms by whether
topicis in the argument shape, verify by whether the action list contains it. Rooms additionally require the room module to be compiled in and to report enabled. - On builds where the schema does not carry them, they simply do not exist. These are not settings you can flip.
- Permission checks fail closed: a
room_send, or a publish that declares a room, whose check throws is denied. - The verify prompt insists that a result with no viewers is not evidence of a clean render.
__artifactRoomJoinDisclosed
Strings lifted out of the shipped bundle, so the claim above can be checked against them.