delete_node
Delete a Figma node by nodeId inside the allowed target frame; confirmFrameOrPageDeletion: true is required to remove a page or top-level frame.
Instructions
Delete a node by nodeId (only within the allowed target frame). Deleting a page or a top-level frame requires confirmFrameOrPageDeletion: true.
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": {
"nodeId": "<nodeId>"
},
"name": "delete_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| confirmFrameOrPageDeletion | No | Required true to delete a PAGE or a top-level FRAME. |