browser_paste
Paste text (plain, HTML, RTF) and files into a web page element using a selector, role, name, or snapshot reference. Falls back to the focused editable or document body if no target is given.
Instructions
Paste clipboard-style text and/or files into a target by snapshot ref, selector, or role/name. Supports text/plain, text/html, text/rtf, and local file paths such as images. If no target is provided, the focused editable element is used, then the root document body.
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": "browser_paste"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| rtf | No | Optional text/rtf clipboard content. | |
| html | No | Optional text/html clipboard content. | |
| name | No | ||
| path | No | Single local file path convenience alias. | |
| role | No | ||
| text | No | Optional text/plain clipboard content. | |
| paths | No | Optional local file paths to add to clipboardData.files. | |
| selector | No |