browser_get_markdown
Browser Get Markdown
Convert the page content to clean Markdown format. Preserves headings, links, images, lists, and basic formatting. Much more readable than HTML for text analysis. Optionally control inclusion of links and images, and limit output length for large pages.
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_markdown(
context_id=context_id
)
Parameters
Required
context_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
Optional
include_linksbooleanInclude hyperlinks in markdown output as [text](url). Default: true. Set to false for cleaner text without links
include_imagesbooleanInclude images in markdown output as . Default: true. Set to false to exclude image references
max_lengthstringMaximum length of the output in characters. Default: -1 (no limit). Useful for limiting output size when processing many pages
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}