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.
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. |