clipboard
Read exact text from an app or set text for pasting in a sandboxed instance, avoiding OCR and screenshots.
Instructions
Read or set the instance's clipboard — the cheapest way to get EXACT text out of an app.
action='get' returns {"ok", "instance", "text", "length", "empty"}: select text in the app
(click/drag, or press_keys('ctrl+a')) then press_keys('ctrl+c') and read it here — no OCR,
no screenshot. "empty": true means nothing (or non-text data) is on the clipboard.
action='set' puts text on the clipboard (then press_keys('ctrl+v') or 'shift+Insert' in
terminals) and returns {"ok", "instance", "length"}. Each instance has its own clipboard
(separate X display). Fails (isError) if xclip is missing or the instance is down.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clipboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| action | No | get | |
| instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |