Delete Viewport
viewport_deleteDelete a viewport by handle. Use force=true to remove the main viewport and repair the layout's view state.
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 | |||