Delete Viewport
viewport_deleteDelete viewports by handle. For a layout's main viewport, enable force to remove it, clean up view state, and repair the current-viewport pointer to prevent dangling references.
Instructions
Delete a viewport.
The layout's main viewport needs force=true; deleting it removes the tab's
own view state, and the layout's current-viewport pointer is repaired so the
file does not carry a dangling reference that only CAD would notice.
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": {
"handle": "<handle>"
},
"name": "viewport_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Allow deleting the layout's main viewport. | |
| handle | Yes | Viewport entity handle (from viewport_list). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||