penpot_design_replace_section
Replace one section of a Craft design already on the canvas with a new version, for a follow-up change. The new section goes where the old one was; the old one is hidden and renamed, never deleted, so the designer can bring it back. Pictures the new version keeps (same layer name) are carried over. Only layers the design created are touched.
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": {
"expectedFileId": "<expectedFileId>",
"expectedPageId": "<expectedPageId>",
"designId": "<designId>",
"parent": "<parent>",
"old": "<old>",
"layout": "<layout>"
},
"name": "penpot_design_replace_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| old | Yes | ||
| set | No | ||
| layout | Yes | studio.layout.v1 with one board: the parent, holding only the new section. | |
| parent | Yes | ||
| designId | Yes | ||
| pictures | No | ||
| expectedFileId | Yes | ||
| expectedPageId | Yes |