rewire_block_input
Rewire a block input to a new source block ID or update its expression string in a .ntop notebook; optionally write to a new path or overwrite with a snapshot.
Instructions
Rewire an input slot of a block to another block ID and/or update its expression string.
Args: notebook_path: Source .ntop file path. block_target: Block ID or unique block name to edit. input_index: 0-based index into the block's inputs array. new_instance_id: New source block ID to connect (or -1 to disconnect). expression: Optional expression string for this input slot. output_path: Optional destination .ntop file path. overwrite: If True and output_path is omitted, overwrite notebook_path in place (with timestamped snapshot).
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>",
"block_target": "<block_target>",
"input_index": "<input_index>"
},
"name": "rewire_block_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overwrite | No | ||
| expression | No | ||
| input_index | Yes | ||
| output_path | No | ||
| block_target | Yes | ||
| notebook_path | Yes | ||
| new_instance_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |