run_notebook
Execute .ntop notebooks headlessly with nTop Automate (ntopcl), passing input parameters and capturing output JSON for automated nTop workflows.
Instructions
Execute an .ntop notebook headlessly via nTop Automate (ntopcl).
Args:
notebook_path: Path to the .ntop notebook.
inputs: Either full nTop JSON schema ({"inputs": [...]}) or a simple dict ({"Length": 10.0}) auto-mapped onto the template.
input_json_path: Optional path to an existing nTop input JSON file.
output_json_path: Optional path where nTop should write its output JSON.
working_dir: Optional working directory for execution and relative exports.
include_properties: Pass -p to include top-level properties in output JSON.
save_notebook: Pass -s to overwrite the .ntop file with computed results.
trust_notebook: Pass --trustnotebook to permit Run Command blocks.
max_threads: Limit CPU threads via -m.
verbosity: Log verbosity 0 (errors), 1 (warnings+errors), 2 (full progress).
custom_block_libraries: Mapping of {library_name: directory_path} for --custom-block-library.
timeout_seconds: Maximum wait time in seconds.
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": "run_notebook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | No | ||
| verbosity | No | ||
| max_threads | No | ||
| working_dir | No | ||
| notebook_path | Yes | ||
| save_notebook | No | ||
| trust_notebook | No | ||
| input_json_path | No | ||
| timeout_seconds | No | ||
| output_json_path | No | ||
| include_properties | No | ||
| custom_block_libraries | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |