viewport_set_size
Set the dimensions of a SubViewport in a Godot scene to specified width and height.
Instructions
Set the size of a SubViewport.
Category: Viewport
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) viewport_path: Path to the viewport node width: New width in pixels height: New height in pixels
Returns: Success message or error description
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": {
"project_path": "<project_path>",
"scene_path": "<scene_path>",
"viewport_path": "<viewport_path>",
"width": "<width>",
"height": "<height>"
},
"name": "viewport_set_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| viewport_path | Yes | ||
| width | Yes | ||
| height | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |