browser_summarize_page
Browser Summarize Page
Generate an intelligent, structured summary of the current page using the LLM. Returns key information about the page topic, main content, and interactive elements. Summaries are cached per URL for performance. Much better than raw text extraction for understanding page content.
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.summarize_page(
context_id=context_id
)
Parameters
Required
context_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
Optional
force_refreshbooleanForce regeneration of the page summary even if cached. Summaries are cached per URL for performance. Set to true after page content has changed. Default: false (use cached summary if available)
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}