add_device
Creates a Packet Tracer device in the logical workspace by model name, with optional name and x/y placement; routers and switches boot immediately.
Instructions
Add a device to the logical workspace by model name (see list_models), optionally naming it and placing it at x/y. Routers and switches boot immediately. Returns the device as Packet Tracer now shows it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Canvas x of the device center. Give both x and y, or neither to use the next free grid slot. | |
| y | No | Canvas y of the device center. | |
| name | No | Name to give the device. Packet Tracer picks one (Router0, PC1, ...) when omitted. | |
| model | Yes | Model name as listed by `list_models`, for example `2911`, `2960-24TT`, `PC-PT`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| kind | Yes | ||
| name | Yes | ||
| model | Yes |