prune_graph
Point the root block at specified outputs to drop unreachable blocks, reducing a notebook to a single chain before running.
Instructions
Point the root block at the given outputs and drop every block no longer reachable. Use this to cut a large notebook down to one chain before running it.
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": {
"notebook": "<notebook>",
"rootInputs": "<rootInputs>"
},
"name": "prune_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | ||
| notebook | Yes | ||
| rootInputs | Yes | Block ids the notebook should evaluate |