POST
/
tools
/
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

Response

200
application/json

The result of the autonomous task.

The response is of type object.