Tailor a component
tailor_componentConfigures one component for the direction: its colours from the palette, its text from the user's copy, its pace from the motion. Returns the tailored JSX and what was changed, and says when a component's own colours cannot 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": {
"direction_id": "<direction_id>",
"slug": "<slug>"
},
"name": "tailor_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | Text for this part, in the user's words. | |
| role | No | The part it plays. | |
| slug | Yes | Component slug, for example "blob-type". Slugs come from recommend_components or search_components. | |
| direction_id | Yes | The direction_id from create_direction. |