> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeus.agentspro.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 调用浏览器工具

> 调用浏览器扩展工具（通过 WebSocket → JSON-RPC）

通过 WebSocket 向浏览器扩展发送 JSON-RPC 工具调用请求，等待执行结果返回。超时时间 60 秒。

<ParamField query="user_id" type="string" required>
  用户 ID
</ParamField>

<ParamField body="tool_name" type="string" required>
  工具名称（如 `click`、`type`、`screenshot`、`navigate`）
</ParamField>

<ParamField body="tool_args" type="object" default="{}">
  工具参数
</ParamField>

<ParamField body="session_id" type="string">
  会话 ID（可选，用于路由到绑定的节点）
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  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"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "result": {
      "screenshot_url": "data:image/png;base64,..."
    }
  }
  ```

  ```json 503 theme={null}
  {
    "detail": "Browser extension not connected"
  }
  ```
</ResponseExample>
