pt_delete_device
Removes a named device from the active Packet Tracer topology and verifies it is gone. Use it to clean up simulated routers, switches, PCs, or laptops by exact device name.
Instructions
Delete a device from the active topology in Packet Tracer. Uses getLogicalWorkspace().removeDevice() and verifies the device is gone.
Parameters:
device_name: exact device name (e.g. "R1", "PC3", "Laptop-WAN")
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>"
},
"name": "pt_delete_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |