Act
Ask Stagehand to perform one browser action in an active browser Runtime. Give it a natural-language instruction such as clicking a button, filling a form, or selecting an option. Stagehand chooses the concrete browser actions needed to complete the instruction.
Run an action
The Runtime must be active. If you do not pass pageId, Stagehand uses the
Runtime’s active page. Pass pageId when the Runtime has more than one page or
when the action must target a specific page.
instruction must be between 1 and 20,000 characters. timeoutMs can be up
to 120000 milliseconds. Use the browser page Tools to
open, list, or activate pages before calling Stagehand.
Request parameters
Response
Each StagehandAction contains:
Run asynchronously
Use an asynchronous ToolCall when the action may take time or should be tracked independently:
Use bctrl.toolCalls.get(call.id) to inspect progress or
bctrl.toolCalls.cancel(call.id) to cancel an active call.
Next
- Stagehand observe — find actionable elements first
- Stagehand extract — read structured data from a page
- Tools — understand Tools, Toolsets, and ToolCalls
- Runtimes — configure the browser Runtime

