render_interaction
Render a component, perform interactions such as click and hover, then screenshot the result to verify interactive UI states.
Instructions
Render a component, simulate user interactions (click, hover, focus, type), then screenshot the result. Use this to verify hover states, dropdowns, modals, form inputs.
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>",
"interactions": "<interactions>"
},
"name": "render_interaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Component code to render | |
| framework | No | Framework | react |
| interactions | Yes | Sequence of interactions to perform | |
| width | No | Viewport width (px) | |
| height | No | Viewport height (px) |