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" }
}'
{
"success": true,
"result": {
"stdout": "total 48\ndrwxr-xr-x 12 user staff 384 Jun 15 10:00 .\n..."
}
}
{
"detail": "Desktop application not connected"
}
Node API
Call Desktop Tool
Invoke a desktop application tool via WebSocket JSON-RPC
POST
/
node
/
desktop
/
tool
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" }
}'
{
"success": true,
"result": {
"stdout": "total 48\ndrwxr-xr-x 12 user staff 384 Jun 15 10:00 .\n..."
}
}
{
"detail": "Desktop application not connected"
}
Sends a JSON-RPC tool call request to the desktop application over WebSocket and waits for the execution result. Timeout is 60 seconds.
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" }
}'
{
"success": true,
"result": {
"stdout": "total 48\ndrwxr-xr-x 12 user staff 384 Jun 15 10:00 .\n..."
}
}
{
"detail": "Desktop application not connected"
}