page.content

View as Markdown

page.content is a browser runtime capability in the page namespace.

Availability

  • Runtime: browser
  • Kind: raw
  • Category: extraction
  • Supported drivers: Playwright, Puppeteer, Stagehand

SDK Surface

  • SDK path: runtime.page.content
  • Async: Yes

HTTP Surface

  • Transport: workspace.execute(...)
  • Call: page.content
  • Long-running: No

Reference Semantics

  • Requires refs: page

Arguments

This capability does not take explicit arguments.

Result

  • Type: string
  • Description: Current page HTML.

SDK Example

1await runtime.page.content();

HTTP Example

1{
2 "runtime": "crm",
3 "steps": [
4 {
5 "call": "page.content"
6 }
7 ]
8}