Generate a widget
generate_widgetCreate a rich inline UI widget from a natural-language prompt. Specify the widget type, data, and layout to generate a ready-to-display widget.
Instructions
Generate a rich inline UI widget from a natural-language prompt using the Widget Studio designer. This is the primary way to create widgets. Prompt recipe: name the widget kind ('a weather card', 'a leaderboard', 'a boarding pass'), enumerate ALL real data it should show (every number, name, and label — the generator renders exactly what you give it and invents placeholders for what you omit), and add layout/style hints when you care ('use the Table component', 'with a bar chart', 'dark-themed', 'compact'). For static widgets add 'display only, no buttons' — otherwise the generator may invent buttons with made-up action types. Takes 20-60 seconds. To iterate, call again with a refined prompt that restates everything plus the changes (the service is stateless); for tiny tweaks, edit the returned widget JSON and use display_widget instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Natural-language description of the widget, including the data it should show. |