Compose a block
compose_blockDesigns one block as a finished TSX file in the direction's world: nav, hero, features, stats, cta, loading, footer, pricing, faq, testimonials, logos, gallery, timeline, contact, feature-icons, split, banner. Pass variant to choose its layout, component to build around a particular piece. Returns the file, the site layer CSS it relies on and the components to install with fit_component.
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": {
"kind": "<kind>"
},
"name": "compose_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | Override the brief's headline, subline or call to action here. | |
| kind | Yes | ||
| brief | No | Used when there is no direction_id yet: brand, app (required), audience, mood, colors, theme, headline, subline, cta, avoid, and optionally world. | |
| title | No | The section title. | |
| target | No | next: Next.js app router files (default). vite: Vite React files. | |
| content | No | The site's real content, in the user's words. Blocks that need facts (numbers, quotes, prices, names) are only planned when they are given here; nothing is invented. | |
| variant | No | Layout variant. nav: bar, float, masthead; hero: backdrop, split, poster, frame, masthead, kinetic, page; features: rows, columns, bento, sticky; stats: band, inline, boxed; cta: panel, type, quiet; loading: center, bar; footer: columns, wordmark, line; pricing: cards, table, menu; faq: accordion, split, grid; testimonials: single, columns, wall; logos: row, grid; gallery: mosaic, strip, grid; timeline: vertical, steps; contact: split, card, details; feature-icons: grid, list; split: media, wide, quote; banner: strip, notice. | |
| component | No | Optional slug to build the block around. | |
| direction_id | No | The direction_id from set_direction (or create_direction). |