Add a Module to a Device
add_module_to_deviceInstalls a hardware module such as a serial card, switch module, or SFP into a free slot of a device. Power-cycles the device, so save the running-config first; returns new port names.
Instructions
Install a hardware module (e.g. HWIC-2T for two serial ports, NIM-2T on ISR4000s, HWIC-4ESW, SFPs) into a free slot. The device is powered off for the change and powered back on, so an unsaved running-config on it is lost -- save first if needed. Returns the new port names (e.g. ["Serial0/0/0", "Serial0/0/1"]).
Examples:
"Add a serial card to R1 so I can do a WAN link"
"Put an HWIC-2T in slot 0/0 of R2"
"Add a NIM-2T to the ISR4331"
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": {
"name": "<name>",
"slot": "<slot>",
"module": "<module>"
},
"name": "add_module_to_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Device display name as shown in Packet Tracer (e.g. 'Router0', 'PC1') | |
| slot | Yes | Slot path, e.g. '0/0' (see get_device_model_details) | |
| module | Yes | Module model, e.g. 'HWIC-2T', 'NIM-2T', 'WIC-2T', 'HWIC-4ESW' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |