List Viewports
viewport_listList paper-space viewports across all or selected layouts, returning handle, geometry, scale, and lock state. The main layout viewport is flagged with is_main.
Instructions
List paper-space viewports: handle, geometry, scale and lock state.
The layout's own main viewport is included with is_main: true — it is the
tab's pan/zoom state rather than a drafting viewport, and it is what remains
after every drafting viewport is deleted. scale and locked are null on
documents that cannot store them (R12) rather than fabricated.
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": "viewport_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | No | Restrict to one paper-space layout. Empty covers every sheet. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||