Browser Clipboard
browser_clipboardRead or write the system clipboard from page context, auto-granting permissions to verify Copy buttons or paste text into pages without inputs.
Instructions
Read or write the system clipboard from the page context. Automatically grants the clipboard-read/clipboard-write permissions for the current origin first — you do NOT need to call browser_emulate separately for this. Use to verify a "Copy to clipboard" button worked, or to paste text a page doesn't expose an input for.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "browser_clipboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. Defaults to extension. | |
| text | No | Text to write to the clipboard (required for "write") | |
| action | Yes | Action to perform | |
| sessionId | No | Puppeteer session ID for headless mode. Skips mode selection. |