pt_remove_module
Removes a module from a device slot in Packet Tracer, powering the device off and back on and saving router/switch config first, so the slot is freed for another module.
Instructions
Removes the module installed in a slot (Physical tab). Powers the device off, removes it and powers it back on, like pt_add_module (routers/switches are saved first with write memory); skipped when PT reports the module as hot-swappable. The reply says whether it restarted and was saved.
slot: STRING, same format as pt_add_module ("0/0", "1", "0"...).
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>"
},
"name": "pt_remove_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | ||
| device | Yes | ||
| dry_run | No |