prune_tree
Remove thoughts that fall below a specified evaluation threshold from a tree, and optionally prune branches exceeding a risk threshold.
Instructions
Prune thoughts below a certain evaluation threshold, optionally by risk threshold
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": {
"treeId": "<treeId>",
"threshold": "<threshold>"
},
"name": "prune_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| treeId | Yes | The ID of the tree | |
| threshold | Yes | The evaluation threshold (thoughts below this will be pruned) | |
| riskThreshold | No | Optional risk threshold (thoughts with risk above this will be pruned) |