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
formatstringDefault png.
One of
png,jpeg.max_long_edgeintegerLongest side of the image in pixels; default 1280.
From 256 to 2576.
partstringWhich part to read; default all it holds.
One of
text,image,files.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/vm_read_clipboard/output.json
filesobjectfiles.guestDataarray of stringsRequiredimageobjectimage.formatstringRequiredOne of
png,jpeg.image.heightintegerRequiredAt least 0.
image.shownHeightintegerRequiredAt least 0.
image.shownWidthintegerRequiredAt least 0.
image.widthintegerRequiredAt least 0.
originstringRequiredOne of
guest,host,mac.partsarray of stringsRequiredEach item is one of
text,image,files.sequenceintegerRequiredAt least 0.
textobjecttext.bytesintegerRequiredAt least 0.
text.encodingstringOne of
base64.text.guestDatastringRequiredtext.shownintegerRequiredAt least 0.
withheldboolean