Complete API reference for the act() method
// String instruction await page.act(instruction: string): Promise<ActResult> // With ActOptions await page.act(options: ActOptions): Promise<ActResult> // Execute observed action await page.act(observeResult: ObserveResult): Promise<ActResult>
interface ActOptions { action: string; modelName?: AvailableModel; modelClientOptions?: ClientOptions; variables?: Record<string, string>; domSettleTimeoutMs?: number; timeoutMs?: number; iframes?: boolean; }
%variable%
temperature
maxTokens
apiKey
30000
true
false
Promise<ActResult>
{ success: true, message: 'Action [scrollTo] performed successfully on selector: /html[1]', action: 'Scrollable area of the page where user can navigate to the pricing section or other parts of the page' }