Get Component Spec
get_componentRetrieve the full component spec before generating any UI component: sizes, variants, states, and UX rules. Prevents improvised component specs.
Instructions
ALWAYS call this before generating any UI component (button, input, card, badge, modal, toast, etc.). Returns the full component spec: sizes, variants, states, and UX rules. Never improvise component specs.
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": "get_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component name, lowercase. E.g. 'button', 'input', 'card', 'badge', 'modal', 'toast'. |