DocsTab Managementbrowser_new_tab

browser_new_tab

Browser New Tab

Open a new tab in the browser context. Optionally navigate to a URL immediately. The new tab becomes active by default. Use for parallel browsing within a single context.

Usage Example

1234567891011
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.new_tab(
context_id=context_id
)

Parameters

Required

context_idstringrequired

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

Optional

urlstring

URL to navigate to in the new tab. If not provided, opens a blank tab (about:blank). Include full URL with protocol (e.g., 'https://example.com')

Response

Returns a JSON object with the operation result.

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