What fitting a component changes
fit_previewLists, in plain words, what fit_component will change in one component for a direction (colours, motion, corners, stroke, density, light or dark build, copy) and what stays as made and why, plus the JSX to use it with. Never returns source and costs nothing.
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_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | Optional copy: brand, headline, subline, cta. | |
| role | No | The part it plays. | |
| slug | Yes | The component slug, for example "glow-button". | |
| direction_id | Yes | The direction_id from set_direction (or create_direction). |