vm_resize
Resize a virtual machine's display.
Changes the size of a machine's display in pixels, and a Windows or Linux machine's scale, 1 for 100% or 2 for 200%. A running Windows machine shows the size within a second at a user's desktop or its lock screen; at the login screen or a User Account Control prompt it waits for the desktop, and it draws at a new scale from the next sign-in. A Linux X11 desktop changes its mode and keeps its scale; Hyprland takes both; a Linux console keeps its own, with bars around it; a macOS machine keeps the scale its window gave it. A stopped machine starts with the display. The result says whether the display shows it, or what it waits for. Coordinates are of the new size: take a new screenshot.
- Profiles
- operator, full
- Read-only
- No
- Destructive
- No
- Idempotent
- No
- Open world
- No
- Runs as a task
- No
Parameters
heightintegerRequiredPixels; for Linux and on the OSMates engine at most 4095, even for Linux at scale 2; for Windows 8184; on the OSMates engine at least 480, and for Windows at least 720 times the scale.
From 320 to 8192.
scaleintegerWindows and Linux: 1 for 100%, 2 for 200%; default the machine's.
From 1 to 2.
vmstringRequiredThe machine's name or identifier, as vm_list shows it.
widthintegerRequiredPixels, a multiple of 8 for Linux and on the OSMates engine, at most 4088 there; for Windows 8184, and 16777216 pixels in all; on the OSMates engine at least 640, and for Windows at least 1024 times the scale.
From 320 to 8192.
Output
The result's structured content is an object with these fields.
JSON Schema: /schemas/0/mcp/tools/vm_resize/output.json
resultobjectRequiredresult.displayobjectRequiredresult.guestobjectresult.outcomestring or objectRequiredOne of
shown, or an object that holds one key:pendingorfailed.verificationobjectRequiredverification.evidencestringRequiredverification.statusstringRequiredOne of
verified,unverified,failed.
Fields nested deeper are in the schema.