DocsContent Extractionbrowser_get_markdown

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_idstringrequired

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

Optional

include_linksboolean

Include hyperlinks in markdown output as [text](url). Default: true. Set to false for cleaner text without links

include_imagesboolean

Include images in markdown output as ![alt](src). Default: true. Set to false to exclude image references

max_lengthstring

Maximum 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>
}