generate_component
Scaffold a new Vue SFC under components/ with typed defineProps/defineEmits and slots, and preview planned output with dry run before writing.
Instructions
Generate a new Vue SFC under components/ with typed defineProps/defineEmits and slots.
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": {
"name": "<name>"
},
"name": "generate_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component name, e.g. BaseButton or ui/BaseButton | |
| emits | No | Event names to declare with defineEmits | |
| props | No | Prop name -> type, e.g. { "label": "string", "count": "number" } | |
| slots | No | Slot names (default slot is always included) | |
| dryRun | No | When true (default), return the planned file without writing |