add_notebook_variable
Adds a promoted top-level variable (core.var<var_type>) to a specified notebook section, linked to a source block, so you can expose and reuse parameters in nTop workflows.
Instructions
Add a promoted top-level variable (core.var<var_type>) in a specified notebook section.
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>",
"name": "<name>",
"var_type": "<var_type>",
"source_block_id": "<source_block_id>"
},
"name": "add_notebook_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| units | No | ||
| var_type | Yes | ||
| overwrite | No | ||
| expression | No | ||
| output_path | No | ||
| section_name | No | ||
| notebook_path | Yes | ||
| source_block_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |