pt_add_device
Add a validated device to a Packet Tracer topology by checking for a non-empty name, catalog model, and duplicate before placement.
Instructions
Add a single device to Packet Tracer with validation. Checks: name not empty, model exists in catalog, no duplicate name.
Parameters:
name: device name (e.g. "R1", "SW-Core", "PC-Admin")
model: PT model type (e.g. "2911", "2960-24TT", "PC-PT", "Server-PT")
x: X coordinate on canvas (default 200)
y: Y coordinate on canvas (default 200)
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": {
"name": "<name>",
"model": "<model>"
},
"name": "pt_add_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| name | Yes | ||
| model | Yes |