Refine an AnimatedWebs UI component
refine_componentApplies one requested change to an existing component's HTML with AnimatedWebs AI and returns the complete updated HTML document. Use it to iterate on a generate_component result (or any self-contained HTML component); use generate_component to start from scratch. Output has the same shape as generate_component (HTML text block with a model comment; structuredContent html, model, generationsLeftToday). Uses one daily generation from the same shared allowance (Free 5, Pro 100 per UTC day); a call where no model ran is not counted. Not idempotent. If the generator is busy it returns an error; retry after a minute. Example: {"html":"...","change":"make the cards glass and add a hover tilt","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": {
"html": "<html>",
"change": "<change>"
},
"name": "refine_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | The current component as a full HTML document, 50 to 60,000 characters; pass the previous output unchanged. | |
| style | No | Visual system to keep: luxury (default), editorial, glass or brutalist. Pass the style the component was generated with. | luxury |
| change | Yes | One change, 4 to 800 characters. Example: 'make the cards glass and add a hover tilt'. |
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) |