AI Tools
Perform Web Task
Start from a URL and perform the given task.
POST
/
v1
/
tools
/
perform-web-task
Copy
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": "Collect the node names and their CPU average %",
"output_schema": {
"type": "object",
"properties": {
"nodes_cpu_usage": {
"type": "array",
"items": {
"type": "object",
"properties": {
"node": {
"type": "string"
},
"cluster": {
"type": "string"
},
"cpu_avg_percentage": {
"type": "number"
}
},
"required": [
"node",
"cluster",
"cpu_avg_percentage"
]
}
}
},
"required": [
"nodes_cpu_usage"
]
}
}'
Copy
{
"data": {
"result": "The article discusses various secure browsers..."
}
}
Authorizations
API key passed in the header
Query Parameters
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
Response
200
application/json
The result of the autonomous task.
The response is of type object
.
Copy
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": "Collect the node names and their CPU average %",
"output_schema": {
"type": "object",
"properties": {
"nodes_cpu_usage": {
"type": "array",
"items": {
"type": "object",
"properties": {
"node": {
"type": "string"
},
"cluster": {
"type": "string"
},
"cpu_avg_percentage": {
"type": "number"
}
},
"required": [
"node",
"cluster",
"cpu_avg_percentage"
]
}
}
},
"required": [
"nodes_cpu_usage"
]
}
}'
Copy
{
"data": {
"result": "The article discusses various secure browsers..."
}
}
Assistant
Responses are generated using AI and may contain mistakes.