Get component
get_componentEverything needed to add one component, fast: one shell command that installs its npm packages and downloads it as a single self contained .tsx file (animated icons and the cn() helper inside), plus a usage example and the props. Run the command rather than writing the file out. Pass files "single" only if you cannot run shell commands.
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": {
"slug": "<slug>"
},
"name": "get_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Component slug, e.g. "sidebar-nav" | |
| files | No | "none" (default) gives a command that downloads the file; "single" includes the file's contents, for agents without a shell | none |