Get the AI Canvas install command for a component
get_install_commandReturns the shadcn CLI command to install a single component in a Tailwind v4 project with components.json; otherwise, use get_component for manual setup.
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". |