Request an invite
Docs menu

vm_read_clipboard

Read a virtual machine's clipboard.

Reads the clipboard of the user signed in at a running Windows, macOS or Linux machine's screen: text, the first 32 KiB of it with its full length; an image, scaled as screen_capture scales one; or the paths of files. A Linux machine's holds text only. It never reads the Mac's pasteboard, and withholds what was pasted from the Mac and what a program marked as concealed.

Profiles
read-only, operator, full
Read-only
Yes
Destructive
No
Idempotent
Yes
Open world
No
Runs as a task
No

Parameters

formatstring

Default png.

One of png, jpeg.

max_long_edgeinteger

Longest side of the image in pixels; default 1280.

From 256 to 2576.

partstring

Which part to read; default all it holds.

One of text, image, files.

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/vm_read_clipboard/output.json

filesobject
files.guestDataarray of stringsRequired
imageobject
image.formatstringRequired

One of png, jpeg.

image.heightintegerRequired

At least 0.

image.shownHeightintegerRequired

At least 0.

image.shownWidthintegerRequired

At least 0.

image.widthintegerRequired

At least 0.

originstringRequired

One of guest, host, mac.

partsarray of stringsRequired

Each item is one of text, image, files.

sequenceintegerRequired

At least 0.

textobject
text.bytesintegerRequired

At least 0.

text.encodingstring

One of base64.

text.guestDatastringRequired
text.shownintegerRequired

At least 0.

withheldboolean

Report a problem with this page