> ## 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.

# 绑定节点到会话

> 将节点绑定到会话

将指定节点绑定到会话。绑定后，该会话的所有工具调用将路由到此节点。

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

<ParamField body="session_id" type="string" required>
  会话 ID
</ParamField>

<ParamField body="node_id" type="string" required>
  节点 ID
</ParamField>

<ResponseField name="success" type="boolean">操作是否成功</ResponseField>
<ResponseField name="message" type="string">操作结果消息</ResponseField>

<ResponseField name="binding" type="object">
  绑定信息

  <Expandable title="binding">
    <ResponseField name="session_id" type="string">会话 ID</ResponseField>
    <ResponseField name="user_id" type="string">用户 ID</ResponseField>
    <ResponseField name="node_id" type="string">节点 ID</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://zeus-api.agentspro.cn/node/bind?user_id=user_123' \
    --header 'Content-Type: application/json' \
    --data '{
      "session_id": "sess_456",
      "node_id": "node_abc"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "message": "Session bound to Chrome Extension",
    "binding": {
      "session_id": "sess_456",
      "user_id": "user_123",
      "node_id": "node_abc"
    }
  }
  ```
</ResponseExample>
