delete_nodes
Deletes specified nodes and all their descendants from the design. Verify parent-child relationships using get_node_info before deletion to avoid removing incorrect branches.
Instructions
Delete one or more nodes from the design. Also deletes all descendants of the specified nodes. IMPORTANT: Before deleting nodes that you think have an incorrect parent verify using get_node_info first.
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": {
"nodeIds": "<nodeIds>"
},
"name": "delete_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Optional. The Paper file ID this call should act on. Pass it to reliably target a specific file when several are open at once (e.g. multiple agents from the same session working in parallel). Omit to use the most recently opened file in the session. | |
| nodeIds | Yes | Array of node IDs to delete. |