add_block
Add a computed block to an nTop notebook by specifying its typed signature, output type, and input block IDs.
Instructions
Add a computed block. Give the full typed signature from search_blocks. Inputs are source block ids in parameter order; use 0 for an unconnected optional input. A list parameter takes exactly one core.list block.
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>",
"func": "<func>",
"type": "<type>",
"name": "<name>",
"inputs": "<inputs>"
},
"name": "add_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| func | Yes | Typed signature, e.g. "box_from_corners<point,point>" | |
| name | Yes | ||
| type | Yes | Output type, e.g. "implicit" | |
| inputs | Yes | ||
| output | No | ||
| blockId | No | Defaults to the next free id | |
| notebook | Yes |