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",
"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"
]
}
}'