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..."
}
}
调用桌面应用工具(通过 WebSocket → JSON-RPC)
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..."
}
}
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..."
}
}