new_element
Generates the WebCake editor node for a chosen element type, including default styling, breakpoint settings, and starter children, so you can add it to a landing page.
Instructions
Returns the node the Webcake editor drops for a type, in the sparse authoring shape: a fresh id, the editor default look (colours, font, border, size) and settings for both breakpoints, and its default children (a form with name + phone fields and a submit button, a carousel with slides, a grid with items). Images are sized placeholders to replace. properties, runtime, empty events and per-breakpoint config are omitted because the server fills them from factory defaults on validate and save.
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": {
"type": "<type>"
},
"name": "new_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional properties.name override (layer label). | |
| type | Yes | Element type to create. |