browser_get_cookies
Browser Get Cookies
Retrieve all cookies from the browser context with full details including httpOnly, secure, sameSite, domain, path, and expiration. Optionally filter by URL to get only relevant cookies.
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.get_cookies(
context_id=context_id
)
Parameters
Required
context_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
Optional
urlstringFilter cookies to only those applicable to this URL. If not provided, returns all cookies in the context. Example: 'https://example.com' returns cookies for example.com domain
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}