set_viewport_size
Set viewport width and height, and configure stretch mode and aspect to control how the game canvas scales and displays.
Instructions
Set the game viewport dimensions and stretch settings
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": {
"width": "<width>",
"height": "<height>"
},
"name": "set_viewport_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Viewport width in pixels | |
| height | Yes | Viewport height in pixels | |
| stretch_mode | No | Stretch mode | |
| stretch_aspect | No | Stretch aspect ratio behavior |