prune_notebook_graph
Prune blocks unreachable from a selected output block in an .ntop notebook graph, then save the pruned graph to a new .ntop file.
Instructions
Prune blocks unreachable from the notebook output block and save to a new .ntop file.
Args: notebook_path: Source .ntop file path. output_path: Destination .ntop file path for the pruned notebook. output_target: Optional block ID or name to set as output before pruning.
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_path": "<notebook_path>",
"output_path": "<output_path>"
},
"name": "prune_notebook_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | Yes | ||
| notebook_path | Yes | ||
| output_target | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |