set_notebook_literal
Update scalar, integer, bool, enum, vector, or text literals in an .ntop file, including unit-aware real values, with optional safe GUI reload after saving.
Instructions
Update a literal value (scalar/real, integer, bool, enum, vector/point, text) inside an .ntop file.
Supports human-friendly unit strings for real values such as "10mm", "2.5cm", "45deg",
or {"value": 10, "unit": "mm"} (automatically converted to SI meters/radians + display expression).
Pass auto_reload_gui=True to safely close and reopen the nTop GUI window after saving (with Autosave guard).
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>",
"target": "<target>",
"value": "<value>"
},
"name": "set_notebook_literal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| target | Yes | ||
| overwrite | No | ||
| expression | No | ||
| output_path | No | ||
| notebook_path | Yes | ||
| auto_reload_gui | No | ||
| force_if_unsaved | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |