Component code
get_componentRetrieve a UI component's code, dependencies, and install command by name to add it to your project; in shadcn projects, run the provided install command.
Instructions
Returns a component's code, dependencies and install command. In a project that already uses shadcn, prefer running the install command.
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 | Name as returned by search_components, e.g. button, BlurText-TS-TW, text-effect | |
| registry | No | shadcn |