addDevice
Add a router, switch, or end device to a Cisco Packet Tracer workspace by providing a unique device name, selecting a model, and setting X/Y coordinates.
Instructions
Add a network device to the workspace. Call getNetwork first if unsure whether the chosen deviceName is already taken; names must be unique.
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": {
"deviceName": "<deviceName>",
"deviceModel": "<deviceModel>",
"x": "<x>",
"y": "<y>"
},
"name": "addDevice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate on workspace. | |
| y | Yes | Y coordinate on workspace. | |
| deviceName | Yes | Unique name for the device (must not already exist). | |
| deviceModel | Yes | Device model. Router: 2911/1941/2811/2901. Switch: 2960-24TT/2950-24/3560-24PS. End device: PC-PT/Server-PT/Laptop-PT/Printer-PT. |