DocsInput Controlbrowser_keyboard_combo

browser_keyboard_combo

Browser Keyboard Combo

Press a keyboard combination with modifiers. Supports Ctrl, Shift, Alt, Meta/Cmd modifiers. Examples: 'Ctrl+A' (select all), 'Ctrl+C' (copy), 'Ctrl+V' (paste), 'Ctrl+Shift+N' (new window).

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.keyboard_combo(
context_id=context_id,
combo="value"
)

Parameters

Required

context_idstringrequired

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

combostringrequired

Key combination string using modifiers and keys. Supports Ctrl, Shift, Alt, Meta/Cmd. Examples: 'Ctrl+A', 'Ctrl+Shift+N', 'Meta+V', 'Shift+Enter'

Response

Returns a JSON object with the operation result.

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