shadcn_get_snippet
Retrieve a canonical usage snippet for any shadcn/ui component, displaying variants, sizes, and composition patterns to simplify integration.
Instructions
Get a usage code snippet for a shadcn/ui component. Returns the canonical example showing variants, sizes, and composition patterns.
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": "shadcn_get_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Component name (e.g., 'Button', 'Dialog', 'Field'). Case-insensitive. |