POST

/api/im/remote/command

Send command to daemon

Send a command from mobile to the daemon. Cloud stores the command in im_remote_commands

and attempts immediate delivery via the daemon's control WS channel. If the daemon is offline,

it will receive the command on next reconnect (poll).

Responds with status: "delivered" if the daemon was online and acknowledged immediately.

当前语言暂无代码示例

请求体

FieldTypeReqDefaultDescription
bindingIdstringYBinding UUID (from pairing)
typestringYCommand type (e.g. tool_approve, tool_reject, agent_stop)
envelopeobjectYOpaque payload forwarded to daemon unchanged
ttlMsintegerNTime-to-live in ms (no expiry if omitted)

响应示例

{
  "ok": true,
  "data": {
    "commandId": "cmd-uuid",
    "status": "pending"
  }
}

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test