POST
/
v1
/
tools
/
perform-web-task
curl --request POST \
  --url https://api.anchorbrowser.io/v1/tools/perform-web-task \
  --header 'Content-Type: application/json' \
  --header 'anchor-api-key: <api-key>' \
  --data '{
  "url": "https://anchorbrowser.io",
  "prompt": "What is anchor browser?"
}'
{
  "data": {
    "result": "The article discusses various secure browsers..."
  }
}

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Query Parameters

sessionId
string

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

Body

application/json
prompt
string
required

The task to be autonomously completed.

Example:

"What is anchor browser?"

url
string

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

Example:

"https://anchorbrowser.io"

Response

200
application/json
The result of the autonomous task.
data
object