Compose a section
compose_sectionDesigns one finished section of the app (hero, nav, features, stats, cta or loading) around Louis Studios components tailored to the direction: colours, copy, speed and layout set for this user. Returns a ready TSX file and the components to install for it.
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>",
"kind": "<kind>"
},
"name": "compose_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | Text for this part, in the user's words. | |
| kind | Yes | Which section. | |
| items | No | Cards for features or stats: a title (or number) and one line each. | |
| button | No | Optional slug of a Louis Studios button for the call to action. | |
| component | No | Optional slug to build the section around instead of the designer's pick. | |
| import_base | No | Where installed components live, as the import path (default "@/components/ui"). | |
| direction_id | Yes | The direction_id from create_direction. |