Skip to main content
POST
/
tools
/
perform-web-task
Perform Web Task
curl --request POST \
  --url https://connect.anchorbrowser.io/tools/perform-web-task \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://anchorbrowser.io",
  "task": "Who is the heighest player in the 49ers team?",
  "output_schema": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string",
        "description": "player name"
      },
      "age": {
        "type": "integer",
        "description": "player age"
      },
      "shirt_number": {
        "type": "integer",
        "description": "player shirt number"
      }
    },
    "required": [
      "name",
      "age",
      "shirt_number"
    ]
  }
}'
{
  "result": "The article discusses various secure browsers..."
}

Authorizations

apiKey
string
query
required

API key passed as a query parameter

Query Parameters

sessionId
string

An optional session identifier to reference an existing running sessions. When passed, the tool will be executed on the provided session.

Body

application/json
url
string

The URL of the webpage. If not provided, the tool will use the current page in the session.

Example:

"https://anchorbrowser.io"

task
string

The task to be autonomously completed.

Example:

"Who is the heighest player in the 49ers team?"

output_schema
object

Optional schema to format the output of the task.

Example:
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "player name"
},
"age": {
"type": "integer",
"description": "player age"
},
"shirt_number": {
"type": "integer",
"description": "player shirt number"
}
},
"required": ["name", "age", "shirt_number"]
}

Response

The result of the autonomous task.

result
string

The outcome or answer produced by the autonomous task.

Example:

"The article discusses various secure browsers..."

I