Observe
Ask Stagehand what actions are available on an active browser page. Use the result to inspect the page before choosing an action, or pass the instruction to your own decision-making code.
Observe a page
pageId is optional. If omitted, Stagehand observes 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
Each action contains:
Run asynchronously
Use bctrl.toolCalls.get(call.id) to inspect progress or
bctrl.toolCalls.cancel(call.id) to cancel an active call.
Next
- Stagehand act — perform an action
- Stagehand extract — extract structured data
- Browser pages — list and select pages

