get_node_details
Retrieve comprehensive details for one or all ESP RainMaker nodes in a single call, supporting filters for node ID, name, or type to focus on specific devices.
Instructions
PREFERRED TOOL for getting comprehensive node information efficiently. Gets config, status, and params in a single API call instead of multiple separate calls.
USAGE:
To get all nodes: set
node_id=None(default).To get a single node: set
node_idto a single node ID string.Only a single node ID is supported. Do NOT use a comma-separated list or array.
If the node is not found or not accessible, the result will be an empty dict or contain empty/unknown fields.
FILTERING & FIELD SELECTION:
fields: comma-separated list of fields to include in the output (e.g. "node_id,name,type,config,params,status.connectivity,fw_version,mapping_timestamp").name: substring match (matches user-visible name, extracted from params.{DeviceType}.Name).type_: substring match (matches device type, from config.devices[].type).node_id: single node ID string (for a single node), or None (for all nodes).
MULTIPLE NODE FILTERING:
To filter for multiple node IDs, set
node_id=Noneand use filtering (e.g. by name or type) in post-processing.Passing a comma-separated list of node IDs is NOT supported and will result in an error.
RETURN VALUE:
If a single node is requested, returns a dict (or empty dict if not found).
If all nodes are requested, returns a list of dicts (one per node).
EXAMPLES:
Get all nodes, only node_id and name: get_node_details(ctx, fields="node_id,name")
Get a single node by ID: get_node_details(ctx, node_id="30EDA0E0AF48", fields="node_id,name,config")
Get all nodes of type 'lightbulb': get_node_details(ctx, type_="lightbulb", fields="node_id,name,type")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | No | ||
| fields | No | ||
| name | No | ||
| type_ | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |