view
Control the AutoCAD drawing display by zooming to all entities or a coordinate window, and capture the current canvas as a PNG screenshot.
Instructions
Viewport control and screenshot capture.
Operations:
zoom_extents — Zoom to show all entities.
zoom_window — Zoom to window: x1, y1, x2, y2 (top-level or inside data)
get_screenshot — Capture PNG; data: {screenshot_path?: absolute new .png}.
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": {
"operation": "<operation>"
},
"name": "view"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | No | ||
| x2 | No | ||
| y1 | No | ||
| y2 | No | ||
| data | No | ||
| operation | Yes |