Read the clipboard
get_clipboardReads the current clipboard to return copied text, whether an image is present, and any files, so tasks can use the user's last copied content.
Instructions
Read the clipboard: its text, whether it holds an image, and the files on it. What the user copied last may be private (a password, a message): read it when the task calls for it.
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": "get_clipboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text on the clipboard. Null when it holds no text (an image, say). | |
| files | Yes | The paths of the files on it, as when copied in Finder. Empty when none. | |
| has_image | Yes | Whether it holds an image, which get_clipboard_image returns. | |
| change_count | Yes | A counter that goes up each time any app changes the clipboard: compare two readings to know whether something was copied in between. |