remove_element
Remove a node or edge from a draw.io diagram by ID, also cleaning up all connected edges.
Instructions
Remove a node or edge from a draw.io diagram by its ID. Also removes any edges connected to a removed node.
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": {
"filePath": "<filePath>",
"elementId": "<elementId>"
},
"name": "remove_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the .drawio file | |
| elementId | Yes | ID of the element to remove |