page.evaluate
page.evaluate 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.evaluate - Async: Yes
HTTP Surface
- Transport:
workspace.execute(...) - Call:
page.evaluate - Long-running: No
Reference Semantics
- Requires refs:
page
Arguments
Result
- Type:
unknown - Description: Serialized result of the evaluated code.
SDK Example
HTTP Example
Related Capabilities
Notes
- Use driver-compatible argument and return types that can be serialized safely.

