browser_paste_text
Paste text into a focused element by simulating a paste event, making React/Vue/Angular inputs accept the value. Focus an element via ref first if needed.
Instructions
Paste text into a focused element on the page. If ref is provided, that element is focused first; otherwise the currently focused element receives the paste. Counterpart to browser_copy_to_clipboard — copy a value with the copy tool, then paste it elsewhere. Dispatches a synthetic paste event (clipboardData.setData + 'insertFromPaste') so React/Vue/Angular controlled inputs accept the value. Use for Stripe webhook secret fields, generated API key fields, or any text you need to push into a form.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional element ref. If provided, the element is focused before the paste event is dispatched. If omitted, the currently focused element is used. | |
| text | Yes | The text to paste into the focused element | |
| tabId | No | Optional tab ID to target. When omitted, routes to the agent's active tab. Use browser_list_tabs to see available tab IDs. | |
| element | No | Human-readable description of the target element (required if `ref` is set, for permission) |