The plugin SDK bridge's ui.invalidate call now also accepts "prompt.context" as an event to invalidate, alongside the existing "ui.render", "prompt.section", and "tool.describe", letting plugins force a refresh of that section specifically.
Names in the bundleprompt.contextui.invalidate
Documented inclaude-code/plugins/mods/admin
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added since
A small documentation edit on Draw in the interface with a mod touched a line naming ui.invalidate after this was published.
Claude Code throttles redraws of a site, so your mod can call `$.ui.invalidate` as often as its data changes. For how often each site can redraw, see the [limits table](/docs/en/plugins/mods/reference#limits).plugins/mods/interface see the edit
Confirmed since
Anthropic's documentation has since written up ui.invalidate, on Draw in the interface with a mod.
Claude Code limits how often it redraws a site, so your mod can call `$.ui.invalidate` as often as its data changes. The visible pane and the band have a higher limit than other sites, and the [limits table](/docs/en/plugins/mods/reference…plugins/mods/interface see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up ui.invalidate, on Draw in the interface with a mod.