Generate an AnimatedWebs UI component
generate_componentWrites one new UI component from a text description with AnimatedWebs AI and returns a complete self-contained HTML document (Tailwind CDN, inline JS). Use it when no library component fits; search_catalog (kind components) first to reuse one, and refine_component to change a result. The text block is the HTML preceded by an HTML comment naming the model and the generations left; structuredContent has html, model and generationsLeftToday. Each successful call uses one daily generation (Free 5, Pro 100 per UTC day, shared with refine_component and the tools site); a call where no model ran is not counted. Not idempotent: each call gives different output. If the generator is busy it returns an error; retry after a minute. Example: {"prompt":"a pricing section with three plans and a yearly toggle","style":"glass"}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Visual system: luxury (dark, gold accent, serif; default), editorial (warm light page, oxblood accent), glass (navy-black, frosted layers, violet accent) or brutalist (black and white, signal red, hard borders). | luxury |
| prompt | Yes | What to build, 8 to 1200 characters: content, layout and motion. Example: 'a pricing section with three plans and a yearly toggle'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Complete self-contained HTML document (Tailwind CDN, inline JS) | |
| model | Yes | Model that wrote it | |
| generationsLeftToday | Yes | Generations left for this account today (UTC) |