generate_react_component
Generate a production-ready React functional component with TypeScript, props interface, hooks, and accessibility attributes
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_react_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| props | No | Comma-separated prop names (e.g. title, onClick, isLoading) | |
| styling | No | Styling approach | |
| withTest | No | Include RTL test scaffold | |
| withState | No | Include useState hooks | |
| withEffect | No | Include useEffect hook | |
| withContext | No | Include useContext hook | |
| componentName | Yes | PascalCase component name (e.g. UserCard, ProductList) | |
| withStorybook | No | Include Storybook story |