render_matrix
Render a UI component across multiple viewports and themes in one call, returning a grid of screenshots to verify responsive design and theme compatibility.
Instructions
Render a component across multiple viewports AND themes in one call. Returns a grid of screenshots (viewports x themes) for comprehensive responsive + theme verification.
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": {
"code": "<code>"
},
"name": "render_matrix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Component code to render | |
| framework | No | Framework: html, react, vue, or svelte | react |
| viewports | No | Viewports to render: preset names ('mobile','tablet','desktop') or custom {width, height} | |
| themes | No | Themes to render for each viewport | |
| css | No | Custom CSS to inject (design tokens, variables, etc) | |
| tailwindVersion | No | Tailwind CSS version (3 or 4) | 3 |