pt_add_module
Adds a hardware module to a Packet Tracer device, automatically power-cycling it to extend available ports and interfaces.
Instructions
Insert a hardware module (device is powered off/on automatically). module_type: 0 line card, 1 network module (NM), 2 interface card (HWIC/WIC/NIM, default). Example: pt_add_module('R1', '0/0', 'HWIC-2T', 2) to add serial ports to a 1941.
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>",
"slot": "<slot>",
"module_model": "<module_model>"
},
"name": "pt_add_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | ||
| device | Yes | ||
| module_type | No | ||
| module_model | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |