Ray's Knowledge Base
Unlock

The Claude Code mod API has no true modal; four closest options

FactVerified 2 Oct 2026Holds anywhere
Fact. A statement and the evidence for it.

Statement#

The Claude Code mod API has no true modal. The closest options are: (1) a pane opened with $.ui.open({ id, focus: true, closeOnEscape: true, rows: N }), which takes the keys, scrolls and closes on Esc; (2) $.ui.ask(question, options), the engine's own dialog, which takes a short question and 2 to 4 buttons, so it cannot show a long body and suits a final "Accept? / Not yet" confirm; (3) CommandOutput, where a mod replaces a command's chat row with its own tree (whether buttons in that row are clickable is unverified); (4) AbovePrompt, toast and status, which are one line each.

Evidence#

The rendering contract is in claude-code.d.ts under the bundled-skills temp folder (/private/tmp/claude-501/bundled-skills/<version>/<hash>/plugin-authoring/types); grep it for modal|dialog|overlay.

Also found by searching

  • the Claude Code mod API has no true modal
  • closest options pane ui.ask CommandOutput AbovePrompt
  • grep the bundled claude-code.d.ts for modal dialog overlay
  • ui.ask takes a short question and 2 to 4 buttons