update_element
Update an existing shape on a Penpot page to adjust its name, position, size, fill color, corner radius, or visibility.
Instructions
Update an existing shape on a Penpot page. Can modify name, position, size, fill color, corner radius, and visibility.
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": {
"fileId": "<fileId>",
"pageId": "<pageId>",
"shapeId": "<shapeId>"
},
"name": "update_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | New X position | |
| y | No | New Y position | |
| name | No | New layer name | |
| width | No | New width | |
| fileId | Yes | Penpot file ID | |
| height | No | New height | |
| pageId | Yes | Page ID containing the element | |
| shapeId | Yes | ID of the shape to update | |
| visible | No | Visibility toggle | |
| fillColor | No | New fill color hex | |
| cornerRadius | No | New corner radius |