pt_canvas_info
Retrieve canvas dimensions, zoom, and device bounding box to determine valid x/y coordinates before adding, moving, or annotating devices in Packet Tracer topologies.
Instructions
Size of PT's visible logical view and where the devices are, so you know which x/y range to use before pt_add_device / pt_move_device / pt_add_note.
Returns view [width, height] in canvas px (depends on the screen and the window: 1512x599 on a 14" MacBook, about 1900x700 on a maximised 1920x1080), zoom (0 = 100 %), the device count and their bbox [x0, y0, x1, y1]. x/y of a device is the top-left corner of its icon (about 50x40 px, labels below): keep x within [40, width-90] and y within [40, height-90] so everything is visible.
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_canvas_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||