run_commands
Execute network topology CLI commands (add, rename, delete, show) against a .nsm master file to modify or inspect the network state.
Instructions
Execute one or more Network Sketcher CLI commands against a .nsm master.
PREREQUISITE: You MUST have called get_ai_context(master) (or at least
get_network_state(master)) at least once in this session before using
this tool. Without that context you do not know the current state nor
the available CLI syntax, and your edits are likely to be wrong.
Each non-empty line of `commands` is parsed with shlex and run as a
single CLI invocation. Allowed verbs: add, rename, delete, show.
`export` is intentionally excluded; use create_empty_master,
export_diagram, or get_ai_context instead.
The `--master` argument is appended automatically; do NOT include it
in the command lines.
Args:
master: Master filename inside the working directory.
commands: Newline-separated CLI command lines. Example:
add device 'SW-3' --area 'DC1'
add l1_link 'SW-2' 'GE 0/0' 'SW-3' 'GE 0/1'
Returns:
Per-line results: each command's exit summary and stdout, joined.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| master | Yes | ||
| commands | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |