Apply a template
apply_templateFill the draft with a starter template (pages, stylesheet and any form collections), personalised with the site title and styled with a design direction from design_guide (palette, Google Fonts pair and character), so sites from the same template look different. niche and direction default to the brief (the design option the owner chose), and the brief's brand colours are applied; without either, the direction recommended for this site is used. Then customise the text, prices, phone number and images. Existing files with the same paths are replaced.
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": {
"site": "<site>",
"template": "<template>"
},
"name": "apply_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site slug (e.g. "kopitiam-muar") or id | |
| niche | No | The kind of business, e.g. "kedai kek", "klinik gigi". Defaults to the template's own niche. | |
| template | Yes | ||
| direction | No | Design direction name from design_guide for this niche (e.g. "Street-food bold"), or its number |