Request an invite
Docs menu

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_spacestring

display: 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.

displayinteger

Which display, from 0 (default). A machine on the OSMates engine can have up to 4; input goes to display 0.

From 0 to 3.

formatstring

Default jpeg.

One of jpeg, png.

max_long_edgeinteger

Longest 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_widthinteger

The width of the screenshot the coordinates are in.

From 1 to 8192.

vmstringRequired

The 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

displayinteger

At least 0.

displayHeightintegerRequired

At least 0.

displayWidthintegerRequired

At least 0.

formatstringRequired

One of png, jpeg.

frameIdstring
heightintegerRequired

At least 0.

regionarray of integers

Exactly 4 items.

scalenumberRequired
widthintegerRequired

At least 0.

Report a problem with this page