Extract
Ask Stagehand to read information from an active browser page. Use a natural language instruction for simple extraction, or pass a JSON schema when your application needs a predictable output shape.
Extract page data
pageId is optional. If omitted, Stagehand uses the Runtime’s active page.
instruction must be between 1 and 20,000 characters, and timeoutMs can be
up to 120000 milliseconds.
Request parameters
Response
JsonValue may be a string, number, boolean, null, array, or object. Pass a
schema when downstream code needs a stable structure.
Run asynchronously
Use bctrl.toolCalls.get(call.id) to inspect progress or
bctrl.toolCalls.cancel(call.id) to cancel an active call.
Next
- Stagehand observe — find elements first
- Stagehand act — perform a browser action
- AI models — choose the model used by the Agent environment

