roma__ListDevices
Queries ROMA devices by instance and project, with optional filters for product, node, online status, tags, and creation time to locate and page through connected devices.
Instructions
[ROMA] 查询设备
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instance_id": "<instance_id>",
"project_id": "<project_id>"
},
"name": "roma__ListDevices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | 标签 | |
| limit | No | 每页显示条目数量,最大数量999,超过999后只返回999 | |
| app_id | No | 应用ID | |
| offset | No | 偏移量,表示从此偏移量开始查询, offset大于等于0 | |
| node_id | No | 设备物理编号,通常使用MAC或者IMEI号,支持英文大小写,数字,下划线和中划线,长度2-64 | |
| client_id | No | 设备客户端ID,平台生成的设备唯一标识 | |
| node_type | No | 节点类型 0-直连 1-网关 2-子设备,不传默认查询所有 | |
| product_id | No | 设备归属的产品ID | |
| project_id | Yes | 项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。 | |
| device_name | No | 设备名称,支持中文、中文标点符号()。;,:“”、?《》及英文大小写、数字及英文符号()_,#.?'-@%&!, 长度2-64 | |
| instance_id | Yes | 实例ID | |
| product_name | No | 设备归属的产品名称 | |
| online_status | No | 是否在线 0-未连接 1-在线 2-离线,支持传入多个值以逗号分隔 | |
| created_date_end | No | 创建时间截止,格式timestamp(ms),使用UTC时区 | |
| created_date_start | No | 创建时间起始,格式timestamp(ms),使用UTC时区 |