Install a component, fitted to the site
fit_componentInstalls a component licensed to the account, fully fitted to the direction: its colours and type become the product's, and its motion speed and intensity, corners, stroke and border weight, density, light or dark build and sample copy change to suit the site. Costs exactly what install_component costs (its price in coins on Pro 30, free on Max, free again for 30 days). By default a one-line shell command; pass as "source" to get the file itself when you cannot run commands. Call fit_preview first to see what will change.
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>",
"direction_id": "<direction_id>"
},
"name": "fit_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | "command" (default): a curl command, valid for 15 minutes. "source": the licensed, fitted file. | |
| dir | No | Project-relative folder (default "components/ui"). | |
| slug | Yes | The component slug, for example "glow-button". | |
| direction_id | Yes | The direction_id from set_direction (or create_direction). |