configure_ios
Applies a block of IOS configuration commands to a router or switch, handling mode changes and stopping at the first rejection. Optionally saves the configuration to survive reload.
Instructions
Apply a block of IOS configuration commands to a router or switch, as if typed after configure terminal: the first command enters global configuration and the rest follow the prompt, so interface ... sub-modes work. Stops at the first command IOS rejects, always leaves configuration mode, and runs write memory when save is true.
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": {
"device": "<device>",
"commands": "<commands>"
},
"name": "configure_ios"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Run `write memory` afterwards so the configuration survives a reload. | |
| device | Yes | Router or switch name. | |
| commands | Yes | Configuration commands in order, for example `hostname R1`, `interface GigabitEthernet0/0`, `ip address 10.0.0.1 255.255.255.0`, `no shutdown`. A leading `enable` or `configure terminal` and a trailing `end` are handled for you. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saved | Yes | ||
| total | Yes | ||
| device | Yes | ||
| applied | Yes | ||
| results | Yes | ||
| completed | Yes |