Anchor Browser icon

Anchor Browser

Interact with Anchor Browser API for browser automation and control

Task → Run Task

AI-generated

Summary

Executes an Anchor Browser task, returning the execution result from the API.

Inputs

  • taskId (required) — ID of the task to run (string).
  • version — Version to run (draft, latest, or version number). Defaults to 'latest'.
  • sessionId — Optional existing session ID to use for the execution.
  • async — If true, the task runs asynchronously and you can later check its status with List Executions. Defaults to false.
  • inputs — Environment variables for task execution (JSON object). Keys must start with ANCHOR_. Defaults to {}.

Output shape

object

The raw response from the Anchor Browser API for the /v1/task/run endpoint, typically containing execution details such as the execution ID, status, and any output data.

Examples

Example 1: Run a task synchronously and capture its output

Set taskId to the desired task, leave version as 'latest', async false, and provide any required inputs. The node will wait for completion and return the execution result.

Example 2: Start a long-running task and poll later

Set async to true and optionally supply a sessionId. The node returns immediately with an execution reference; use the List Executions operation to check status.

Discussion