Create Viewport
viewport_createPlace a scaled model-space viewport on a paper-space layout, setting its position, size, and scale to display the exact model area needed.
Instructions
Place a scaled model-space viewport on a paper-space layout.
The viewport window shows the model region centered at (view_center_x, view_center_y); view height = height / scale.
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": {
"layout": "<layout>",
"center_x": "<center_x>",
"center_y": "<center_y>",
"width": "<width>",
"height": "<height>",
"view_center_x": "<view_center_x>",
"view_center_y": "<view_center_y>"
},
"name": "viewport_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Paper:model scale (1.0 = 1:1, 0.5 = 1:2, 2.0 = 2:1). | |
| width | Yes | Viewport width in paper units. | |
| height | Yes | Viewport height in paper units. | |
| layout | Yes | Paper-space layout that receives the viewport. | |
| center_x | Yes | Viewport center X in paper units. | |
| center_y | Yes | Viewport center Y in paper units. | |
| view_center_x | Yes | Model-space X the viewport looks at. | |
| view_center_y | Yes | Model-space Y the viewport looks at. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||