pt_auto_layout
Rearranges Packet Tracer devices by topology and fits them to the visible view, with an optional preview mode that returns new positions without moving anything.
Instructions
Rearrange the devices on the canvas by topology and fit them to the visible view.
Reads the live devices and links: routers form the core (2 or a chain: a row with the end LANs pointing outward, middle LANs alternating down/up; a ring: a polygon; a hub: a star), each LAN hangs off its router away from the core (switch, then its hosts side by side), a WAN cloud takes the free side. Moves everything in one call and reads each position back.
Use it after building by hand, after adding devices, or when a lab looks crowded. pt_full_build / pt_plan_topology already plan with this layout.
Parameters:
apply: False only returns the new positions without moving anything.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pt_auto_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No |