pt_add_module
Installs an expansion module into a specified slot on a Packet Tracer device in the active topology, saving router/switch config first and power-cycling to apply it.
Instructions
Installs an expansion module on a device in the active topology.
PT powers the device off, installs the module and powers it back on (with skipBoot). A restart reloads the startup-config, so routers/switches are saved first (write memory); the reply says whether the device restarted and was saved.
Parameters:
device_name: exact device name in PT (e.g. "R1"). Use pt_query_topology to list valid names.
slot: the slot identifier as a STRING. The format depends on the device's slot type:
HWIC on 2911/2901 → "0/0".."0/3" · on 1941 ONLY "0/0" and "0/1" (verified against PT 9.0.1: the 1941 has 2 slots, not 4) (chassis-slot/hwic-subslot)
NM on 2811/2620XM/Router-PT → "1"
NIM on ISR4321/4331 → "0/1", "0/2" (chassis/subslot — NOT "0"/"1")
Cloud-PT/Server-PT/PCs → "0", "1", ... depending on the available slot An integer is accepted too and converted to a string.
module_name: exact module name, e.g. "HWIC-2T", "NM-4A/S", "NIM-2T", "HWIC-1GE-SFP". Use pt_list_modules to discover them.
dry_run: if True, validates and returns the JS payload without sending it.
Example: add 2 serial ports to R1 in HWIC slot 0: pt_add_module(device_name="R1", slot="0/0", module_name="HWIC-2T")
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_name": "<device_name>",
"slot": "<slot>",
"module_name": "<module_name>"
},
"name": "pt_add_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | ||
| dry_run | No | ||
| device_name | Yes | ||
| module_name | Yes |