🔒 Protected via Cloudflare Access

show Tool — Generative UI for Discord

Overview

show renders content and presents it via Discord's in-app browser. First mode: markdown. Future modes: dashboard, table, chart, form, etc.

Tool Signature

show({
  channel: string,        // Discord channel ID
  title: string,          // Page title + container heading
  content: string,        // Markdown content (mode=markdown)
  summary?: string,       // Inline summary in Discord message
  mode?: "markdown",      // Future: "dashboard", "table", "chart"
  accentColor?: string,   // Container accent hex
})

Flow

  1. Agent calls show()
  2. Tool converts markdown → dark-themed HTML
  3. Deploys to CF Pages (unique hash URL, ~3s)
  4. Sends V2 Container: summary + "📖 View" link button
  5. User taps → in-app browser → formatted content

Security

Design

Future Modes

Each mode = a different HTML template. Content structure varies per mode.

Naming