prune
Optimize reasoning graphs by removing dead ends, consolidating redundant branches, and improving path efficiency during deep thinking processes.
Instructions
Prune and optimize the thought graph. Remove dead ends, consolidate redundant branches, and optimize reasoning paths. Helps maintain graph efficiency during deep reasoning.
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": {
"action": "<action>"
},
"name": "prune"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | analyze=report without changes, prune=execute pruning, optimize_path=optimize best path, prune_node=prune specific node | |
| nodeId | No | Node ID to prune (for prune_node action) | |
| reason | No | Reason for pruning (for prune_node action) |