generate_snapshot_test
Generate React component snapshot tests (Jest or Vitest, file or inline snapshots), one per props variant
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": {
"componentName": "<componentName>"
},
"name": "generate_snapshot_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inline | No | ||
| variants | No | [{name, props}] — one snapshot per variant (default: one with no props) | |
| framework | No | ||
| importPath | No | Module exporting the component (default ./<Component>) | |
| componentName | Yes |