generate_preview
Render Tailwind-styled HTML as a visual component preview with configurable size, dark mode, and responsive breakpoints to inspect layout and styling.
Instructions
Generate visual preview of Tailwind components
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>"
},
"name": "generate_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | HTML code to preview | |
| width | No | Preview width in pixels | |
| height | No | Preview height in pixels | |
| darkMode | No | Generate dark mode preview | |
| responsive | No | Generate responsive breakpoint previews |