uichemy_replace_section
Swaps a section for another LIBRARY layout. To replace it with a NEW design made for this site ("generate / design a new hero", "make it more creative"), use uichemy_design_section with replace and then uichemy_update_designed_section instead. Swap the layout rendering at one position — same slot, different template. The copy does NOT carry over: slot tokens belong to the template, so the new one has its own and will render them raw until filled. Call uichemy_template_slots for the new layout and pass text.
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>",
"pageName": "<pageName>",
"index": "<index>",
"kind": "<kind>",
"variant": "<variant>"
},
"name": "uichemy_replace_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| text | No | ||
| index | Yes | 1-based, as uichemy_get_page lists them. | |
| variant | Yes | ||
| pageName | Yes | ||
| projectId | Yes |