DocsClipboardbrowser_clipboard_write

browser_clipboard_write

Browser Clipboard Write

Write text content to the system clipboard. Replaces any existing clipboard content. Useful for preparing content to paste into the browser.

Usage Example

123456789101112
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.clipboard_write(
context_id=context_id,
text="value"
)

Parameters

Required

context_idstringrequired

The unique identifier of the browser context (e.g., 'ctx_000001')

textstringrequired

Text content to write to the system clipboard

Response

Returns a JSON object with the operation result.

{
  "success": true,
  "result": <value>
}