batch_edit_notebook
Apply multiple graph edits atomically in one transaction; validate changes in memory before saving, with optional ntopcl verification and nTop GUI reload.
Instructions
Atomically apply multiple graph edits (with $alias references) in a single transaction.
All operations run in memory first; the file is only saved if graph validation passes
(and if verify_with_ntopcl=True, only if ntopcl evaluates verify_target with zero errors).
Pass auto_reload_gui=True to automatically close the old nTop GUI window (if no unsaved Autosave edits)
and reopen the updated file in a single clean window.
Supported op types: add_section, add_literal, add_block, add_variable,
set_literal, rewire_input, set_output, set_visibility, promote_to_input.
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>",
"operations": "<operations>"
},
"name": "batch_edit_notebook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | ||
| operations | Yes | ||
| output_path | No | ||
| notebook_path | Yes | ||
| verify_target | No | ||
| auto_reload_gui | No | ||
| force_if_unsaved | No | ||
| verify_with_ntopcl | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |