Get the AI Canvas install command for a component
get_install_commandReturns the exact shadcn CLI command to install a component, enabling direct installation when the project uses shadcn-aware setup; otherwise it falls back to manual component file writing.
Instructions
Return the shadcn CLI command to install a single component into the user's project. After calling this, suggest the user run the command (or run it yourself if you have shell access). Requires shadcn-aware setup (Tailwind v4, components.json) — for projects without that, fall back to get_component and write the file manually.
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_install_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The component slug, e.g. "ai-job-cards". |