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 %",
"agent": "openai-cua",
"provider": "openai",
"model": "gpt-4o",
"highlight_elements": true,
"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"
]
}
}'
{
"data": {
"result": "The article discusses various secure browsers..."
}
}
Start from a URL and perform the given 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": "Collect the node names and their CPU average %",
"agent": "openai-cua",
"provider": "openai",
"model": "gpt-4o",
"highlight_elements": true,
"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"
]
}
}'
{
"data": {
"result": "The article discusses various secure browsers..."
}
}
API key passed in the header
An optional browser session identifier to reference an existing running browser sessions. When passed, the tool will be executed on the provided browser session.
The result of the autonomous task.
The response is of type object
.