generate_svelte_component
Generate a Svelte 5 component with runes syntax, reactive state, and event handlers
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_svelte_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| props | No | Comma-separated prop names | |
| styling | No | Styling approach | |
| withStore | No | Include writable store integration | |
| useSvelteKit | No | Target SvelteKit (adds page data patterns) | |
| componentName | Yes | PascalCase component name | |
| withAnimation | No | Include svelte/transition animation |