curl --request POST \
--url 'https://zeus-api.agentspro.cn/node/browser/tool?user_id=user_123' \
--header 'Content-Type: application/json' \
--data '{
"tool_name": "screenshot",
"tool_args": { "full_page": true },
"session_id": "sess_456"
}'
{
"success": true,
"result": {
"screenshot_url": "data:image/png;base64,..."
}
}
{
"detail": "Browser extension not connected"
}
Node API
调用浏览器工具
调用浏览器扩展工具(通过 WebSocket → JSON-RPC)
POST
/
node
/
browser
/
tool
curl --request POST \
--url 'https://zeus-api.agentspro.cn/node/browser/tool?user_id=user_123' \
--header 'Content-Type: application/json' \
--data '{
"tool_name": "screenshot",
"tool_args": { "full_page": true },
"session_id": "sess_456"
}'
{
"success": true,
"result": {
"screenshot_url": "data:image/png;base64,..."
}
}
{
"detail": "Browser extension not connected"
}
通过 WebSocket 向浏览器扩展发送 JSON-RPC 工具调用请求,等待执行结果返回。超时时间 60 秒。
curl --request POST \
--url 'https://zeus-api.agentspro.cn/node/browser/tool?user_id=user_123' \
--header 'Content-Type: application/json' \
--data '{
"tool_name": "screenshot",
"tool_args": { "full_page": true },
"session_id": "sess_456"
}'
{
"success": true,
"result": {
"screenshot_url": "data:image/png;base64,..."
}
}
{
"detail": "Browser extension not connected"
}