Install a component
install_componentDelivers a component licensed to the account. With a direction_id the file arrives restyled for the product: every colour moved into its palette and its type set in the product's faces, so it looks made for this app rather than taken from a catalog. By default a one-line shell command that downloads the file; pass as "source" to get the file itself when you cannot run 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": "install_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | "command" (default): a curl command, valid for 15 minutes. "source": the licensed file. | |
| dir | No | Project-relative folder (default "components/ui"). | |
| slug | Yes | Component slug, for example "blob-type". Slugs come from recommend_components or search_components. | |
| direction_id | No | The direction to restyle the file for. Always pass it when the app has a direction. |