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.The engine that runs the task. Defaults to
skyvern_v1 ("skyvern-1.0"), suited to simple, single-goal tasks. skyvern_v3 ("skyvern-3.0") is the newest engine; the REST API and the Python SDK accept it, but the published TypeScript client’s type does not list it yet. skyvern_v2 remains for existing 2.0 runs. openai_cua and anthropic_cua use OpenAI’s and Anthropic’s computer-use models; ui_tars is also accepted.Default: RunEngine.skyvern_v1URL to receive webhook notifications about task progress.Default:
None · TypeScript: webhookUrlIdentifier for TOTP (Time-based One-Time Password) authentication.Default:
None · TypeScript: totpIdentifierMapping of error codes to custom error messages.Default:
None · TypeScript: errorCodeMappingSchema defining what data to extract from the page.Default:
None · TypeScript: dataExtractionSchemaTaskRunResponse · TypeScript Promise<TaskRunResponse> — TaskRunResponse containing the task execution results.
TaskRunResponse fields
TaskRunResponse fields
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:-
Skyvern credentials (default):
-
Bitwarden credentials:
-
1Password credentials:
-
Azure Vault credentials:
Type of credential store to use. Defaults to CredentialType.skyvern.Default:
CredentialType.skyvern · TypeScript: credentialType (required)ID of the Skyvern credential to use (required for skyvern credential_type).Default:
None · TypeScript: credentialIdBitwarden collection ID (optional for bitwarden credential_type).Default:
None · TypeScript: bitwardenCollectionIdBitwarden item ID (required for bitwarden credential_type).Default:
None · TypeScript: bitwardenItemId1Password vault ID (required for onepassword credential_type).Default:
None · TypeScript: onepasswordVaultId1Password item ID (required for onepassword credential_type).Default:
None · TypeScript: onepasswordItemIdAzure Vault name (required for azure_vault credential_type).Default:
None · TypeScript: azureVaultNameAzure Vault username key (required for azure_vault credential_type).Default:
None · TypeScript: azureVaultUsernameKeyAzure Vault password key (required for azure_vault credential_type).Default:
None · TypeScript: azureVaultPasswordKeyAzure Vault TOTP secret key (optional for azure_vault credential_type).Default:
None · TypeScript: azureVaultTotpSecretKeyURL to receive webhook notifications about login progress.Default:
None · TypeScript: webhookUrlAdditional HTTP headers to include in requests.Default:
None · TypeScript: extraHttpHeadersWorkflowRunResponse · TypeScript Promise<WorkflowRunResponse> — WorkflowRunResponse containing the login workflow execution results.
WorkflowRunResponse fields
WorkflowRunResponse fields
page.agent.download_files
Run a file download task in the context of this page and wait for it to finish.URL to navigate to for file download. If not provided, uses the current page URL.Default:
NoneComplete filename for the downloaded file. Supports {{ original_filename }} to keep the name the site gave the file.Default:
None · TypeScript: downloadSuffixTimeout in seconds for the download operation.Default:
None · TypeScript: downloadTimeoutURL to receive webhook notifications about download progress.Default:
None · TypeScript: webhookUrlAdditional HTTP headers to include in requests.Default:
None · TypeScript: extraHttpHeadersWorkflowRunResponse · TypeScript Promise<WorkflowRunResponse> — WorkflowRunResponse containing the file download workflow execution results.
WorkflowRunResponse fields
WorkflowRunResponse fields
page.agent.run_workflow
Run a workflow in the context of this page and wait for it to finish.URL to receive webhook notifications about workflow progress.Default:
None · TypeScript: webhookUrlTimeout this workflow run after the configured elapsed runtime in minutes.Default:
None · Python onlyString key/value metadata to attach to this workflow run.Default:
None · Python onlyWorkflowRunResponse · TypeScript Promise<WorkflowRunResponse> — WorkflowRunResponse containing the workflow execution results.
WorkflowRunResponse fields
WorkflowRunResponse fields

