uichemy_add_designed_section
Adds the section you designed with uichemy_design_section to a page of the user's project. The file is checked against the Designer's contract (refused with the reasons to fix if it fails), its photo: descriptions get real photos, and every piece of copy becomes an editable slot (change words later with uichemy_set_text; the user can also edit it on the canvas). It is saved as an AI section, like one the editor's Designer generates, and shows in the open editor.
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": {
"projectId": "<projectId>",
"kind": "<kind>",
"templateId": "<templateId>",
"code": "<code>"
},
"name": "uichemy_add_designed_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The complete section .jsx file. | |
| kind | Yes | Section kind: hero, features, testimonials, pricing-table, cta, faq, team, gallery… | |
| pageName | No | Defaults to Home. | |
| position | No | 1-based place, as uichemy_design_section said. | |
| projectId | Yes | ||
| templateId | Yes | The id uichemy_design_section gave. |