reachthingsDocs
EN
Dashboard
Read toolsget_device
On this page
TOOLscope: devices:read · readOnlyHint

get_device

Returns the allowed capabilities of a device with their input schemas, units and ranges, required approvals, control path, and each control capability's completion rule and verification rule. Call it before execute_device_action.

Arguments

device_idstringrequired

From list_devices.

Returns: Device

control_pathenum

manufacturer_cloud, plug_cloud or local_helper. See Smart plugs vs appliances.

capabilities[].id · kindstring · enum

Action or attribute id; read, set, execute or event. Only actions this agent may run are listed.

capabilities[].input_schemaJSON Schema | null

Validated strictly: undeclared fields are rejected.

capabilities[].approvalenum

per_command when the connector or the user requires approval for this action; else none.

capabilities[].completion_rule · verification

What counts as success and which attribute is observed to prove it.

capabilities[].preconditionsstring[]

Conditions the device must satisfy, e.g. remote_start_allowed == true.

capabilities[].last_execution · last_verified_at

This device's most recent result for the action and when it last succeeded. A past failure does not remove the capability.

Request

REQUESTTypeScript ▾
await client.callTool({ name: "get_device", arguments: { device_id: "dev_8kq2" } });
RESPONSE · structuredContent
{
  "device_id": "dev_8kq2",
  "alias": "Counter AC",
  "kind": "air_conditioner",
  "model": "Samsung AR12",
  "control_path": "manufacturer_cloud",
  "connection_status": "online",
  "capabilities": [
    { "id": "appliance.power.set", "version": 1, "kind": "set",
      "input_schema": { "type": "object", "properties": { "power": { "type": "string", "enum": ["on", "off"] } }, "required": ["power"], "additionalProperties": false },
      "approval": "none", "idempotent": true, "preconditions": [],
      "completion_rule": "state_observed",
      "verification": { "attribute": "power", "parameter": "power", "sources": ["manufacturer_state"], "freshness_ms": 120000 },
      "last_execution": { "status": "succeeded", "at": "2026-10-31T23:46:10.000Z", "reason_code": null },
      "last_verified_at": "2026-10-31T23:46:10.000Z" },
    { "id": "climate.set_temperature", "version": 1, "kind": "set",
      "input_schema": { "type": "object", "properties": { "temperature": { "type": "number", "minimum": 16, "maximum": 30 }, "unit": { "type": "string", "enum": ["C"] } }, "required": ["temperature", "unit"], "additionalProperties": false },
      "approval": "none", "idempotent": true, "preconditions": [], "completion_rule": "state_observed",
      "verification": { "attribute": "target_temperature", "parameter": "temperature", "sources": ["manufacturer_state"], "freshness_ms": 120000 },
      "last_execution": null, "last_verified_at": null },
    { "id": "current_temperature", "version": 1, "kind": "read", "input_schema": null, "approval": "none", "idempotent": true, "preconditions": [], "completion_rule": null, "verification": null, "last_execution": null, "last_verified_at": null }
  ]
}

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
DEVICE_NOT_ACCESSIBLEUnknown device, or not granted to this agentCall list_devices; ask the user to grant access
DEVICE_NOT_ACCESSIBLE
WhenUnknown device, or not granted to this agent
What to doCall list_devices; ask the user to grant access