Skip to main content
page.agent runs Skyvern’s agents against the page you already have open, then returns control to your script on the same page.

page.agent.run_task

Run a task in the context of this page and wait for it to finish.
Parameters Returns TaskRunResponse · TypeScript Promise<TaskRunResponse> — TaskRunResponse containing the task execution results.
Example

page.agent.login

Run a login task in the context of this page and wait for it to finish. This method has multiple overloaded signatures for different credential types:
  1. Skyvern credentials (default):
  2. Bitwarden credentials:
  3. 1Password credentials:
  4. Azure Vault credentials:
Parameters Returns WorkflowRunResponse · TypeScript Promise<WorkflowRunResponse> — WorkflowRunResponse containing the login workflow execution results.
Example

page.agent.download_files

Run a file download task in the context of this page and wait for it to finish.
Parameters Returns WorkflowRunResponse · TypeScript Promise<WorkflowRunResponse> — WorkflowRunResponse containing the file download workflow execution results.
Example

page.agent.run_workflow

Run a workflow in the context of this page and wait for it to finish.
Parameters Returns WorkflowRunResponse · TypeScript Promise<WorkflowRunResponse> — WorkflowRunResponse containing the workflow execution results.
Example