reachthingsDocs
EN
Dashboard
Action toolsget_command_status
On this page
TOOLscope: devices:read · readOnlyHint

get_command_status

Returns the acceptance, execution and verification status of a command with evidence. succeeded means confirmed only to the extent verification.level states. With wait_ms, waits up to that long (max 60 seconds) for the status to change or reach a final state, so you can get the result in one call right after approval or dispatch.

Arguments

command_idstringrequired

From execute_device_action.

wait_msinteger · 0–60000

Long-poll: return as soon as the status changes or becomes terminal, or when the time is up.

Returns: Command

statusenum

waiting_approval queued dispatching provider_accepted verifying succeeded rejected failed cancelled expired outcome_unknown

verificationobject

level, required_level, provider_status, target_match, source, observed_at, deadline_at. See Verification.

next_actionobject

What your agent should do next: poll_command_status, open_approval_url, show_result or show_unknown, plus a message safe to show the user.

approvalobject | null

Present when status is waiting_approval: approval_id, url and expires_at. Opening the URL does not approve.

next_poll_after_msinteger | null

Wait this long before calling get_command_status.

reason_codeenum | null

Why a command ended in rejected, failed, cancelled, expired or outcome_unknown. See Reason codes.

approval_channelenum

Only for commands that needed approval: console, mcp_url or mcp_form, with approval_channel_reason when in-chat approval was not possible.

Request

REQUESTTypeScript ▾
await client.callTool({
  name: "get_command_status",
  arguments: { command_id: "cmd_3vX9", wait_ms: 10000 }
});
RESPONSE · structuredContent
{
  "command_id": "cmd_3vX9",
  "status": "succeeded",
  "reason_code": null,
  "device_id": "dev_8kq2",
  "action": "climate.set_temperature",
  "parameters": { "temperature": 22, "unit": "C" },
  "verification": {
    "level": "state_observed",
    "required_level": "state_observed",
    "provider_status": "accepted",
    "target_match": "matched",
    "source": "manufacturer_state",
    "observed_at": "2026-10-18T08:30:41Z",
    "deadline_at": "2026-10-18T08:31:20Z"
  },
  "approval": null,
  "next_action": { "type": "show_result", "message": "Done. Target temperature now reads 22°C." },
  "next_poll_after_ms": null,
  "expires_at": "2026-10-18T08:35:00Z"
}

Errors

Errors before a command is created return isError: true with command_id: null. Problems after creation are a command status, not an error. Full list: Errors.

CodeWhenWhat to do
COMMAND_NOT_ACCESSIBLEUnknown command or not yoursCheck the command_id
COMMAND_NOT_ACCESSIBLE
WhenUnknown command or not yours
What to doCheck the command_id