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

# Call Desktop Tool

> Invoke a desktop application tool via WebSocket JSON-RPC

Sends a JSON-RPC tool call request to the desktop application over WebSocket and waits for the execution result. Timeout is 60 seconds.

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

<ParamField body="tool_name" type="string" required>
  Tool name
</ParamField>

<ParamField body="tool_args" type="object" default="{}">
  Tool arguments
</ParamField>

<ParamField body="session_id" type="string">
  Session ID (optional, used to route to the bound node)
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://zeus-api.agentspro.cn/node/desktop/tool?user_id=user_123' \
    --header 'Content-Type: application/json' \
    --data '{
      "tool_name": "run_command",
      "tool_args": { "command": "ls -la" }
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "result": {
      "stdout": "total 48\ndrwxr-xr-x  12 user  staff  384 Jun 15 10:00 .\n..."
    }
  }
  ```

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