screen_capture
Capture a virtual machine's screen.
Returns an image of the machine's display with its frameId, scaled so that its long edge is at most max_long_edge, and the scale from image pixels to display pixels. region zooms into part of the display at full resolution.
- Profiles
- read-only, operator, full
- Read-only
- Yes
- Destructive
- No
- Idempotent
- Yes
- Open world
- No
- Runs as a task
- No
Parameters
coordinate_spacestringdisplay: pixels of what the display shows now (default). screenshot: pixels of a scaled screenshot screenshot_width wide. normalized_1000: 0 to 999 across each side.
One of
display,screenshot,normalized_1000.displayintegerWhich display, from 0 (default). A machine on the OSMates engine can have up to 4; input goes to display 0.
From 0 to 3.
formatstringDefault jpeg.
One of
jpeg,png.max_long_edgeintegerLongest side of the image in pixels; default 1280.
From 256 to 2576.
regionarray of numbers[x0, y0, x1, y1], top-left and bottom-right corners in coordinate_space.
Exactly 4 items.
screenshot_widthintegerThe width of the screenshot the coordinates are in.
From 1 to 8192.
vmstringRequiredThe machine's name or identifier, as vm_list shows it.
Output
The result's structured content is an object with these fields.
JSON Schema: /schemas/0/mcp/tools/screen_capture/output.json
displayintegerAt least 0.
displayHeightintegerRequiredAt least 0.
displayWidthintegerRequiredAt least 0.
formatstringRequiredOne of
png,jpeg.frameIdstringheightintegerRequiredAt least 0.
regionarray of integersExactly 4 items.
scalenumberRequiredwidthintegerRequiredAt least 0.