执行计算机使用或移动设备使用操作
在沙箱上执行计算机使用或移动设备使用操作。
在沙箱上执行计算机使用或移动设备使用操作。
Path Parameters
sandboxId*string
orgId*string
组织 ID
Request Body
application/json
action*|
includeScreenShot?boolean
是否在响应中包含操作后的截图 URL
Default
trueincludeCursorPosition?boolean
是否在响应中包含操作后的光标位置。在某些无光标设备上,仅宽度和高度有意义。
Default
trueResponse Body
application/json
curl -X POST "https://loading/api/orgs/string/sandboxes/string/actions/execute" \ -H "Content-Type: application/json" \ -d '{ "action": { "type": "mouse:click", "x": { "type": "px", "value": 0 }, "y": { "type": "px", "value": 0 }, "button": 0 } }'{
"screenShot": "http://example.com",
"cursorPosition": {
"x": 0,
"y": 0,
"screenWidth": 0,
"screenHeight": 0,
"screenIndex": 0
},
"actionResult": null
}