add_location
Create cities, buildings, wiring closets, racks, tables, shelves, cable pegboards, or containers to organize devices in Packet Tracer. Save the network to keep them.
Instructions
Create a place in the physical workspace: a city, a building, a wiring_closet, or furniture to arrange devices on (rack, table, shelf, cable_pegboard, container), with an optional name and position. Cities and closets use Packet Tracer's own buttons; the rest are written into the network file and come back with the temporary copy Packet Tracer now has open, so save with save_network to keep them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | What to create: `city`, `wiring_closet`, `building`, `rack`, `table`, `shelf`, `cable_pegboard` or `container`. Packet Tracer's own API only creates cities and wiring closets; the rest are written into the network file. | |
| name | No | Name for the new location. Packet Tracer's default name is used when omitted. | |
| inside | No | Path of the city or building to put a wiring closet in, for example `Home City/Corporate Office`. Omit for Intercity. Cities always go in Intercity. | |
| x_percent | No | Where to put it inside its parent, as a percentage of the room's width and height. | |
| y_percent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The temporary copy Packet Tracer now has open, when the change went through the network file. Your own file is untouched: save with `save_network` and a path to keep the change there. | |
| location | Yes |