Turn screen sizes off or on, or add your own
set_screen_sizesSets which standard screen sizes of one site are turned off and which sizes the owner added (a kiosk, a folded phone: up to 5, each named, 280 to 3840 px wide, and not one of the standard widths); at least one size must stay on. Leave off or added out to keep what is saved. Only owners and admins can. Turning a size off or removing an added one stops CodeGene designing and checking the site at it, so such a call answers status needs-confirmation with a warning and saves nothing: show the person that warning word for word, and only after they say they understand, call again with understood true. Turning sizes back on or adding sizes needs no warning.
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_id": "<project_id>"
},
"name": "set_screen_sizes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| off | No | The standard sizes to turn off, by name as get_screen_sizes lists them (mobile, tablet, laptop, desktop, widescreen). An empty list turns every standard size on. | |
| added | No | Every size the owner added, as the whole list: include the ones to keep. An empty list removes them all. | |
| project_id | Yes | The site (list_projects gives ids). | |
| understood | No | True only after the person has read the warning this tool gave and said they understand it. | |
| workspace_id | No | Workspace id from whoami; omit when there is one. |