device_request
Query approved read-only CyberBrick device status, configuration, board info, Wi-Fi MAC, firmware version, and project/checksum details; unsupported methods and commands are refused.
Instructions
Call a read-only window.app.local method: isInLoader, getDeviceById, or sendGetMessage with a read-only B0 command (DEVICE_STATUS, GET_DEVICE_CONFIG, GET_BOARD_INFO, GET_BOARD_TYPE, GET_DEVICE_WIFI_MAC, SYSTEM_VERSION, MPY_PROJECT_INFO, MPY_CHECKSUM_INFO). Any other method or command is refused.
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": {
"method": "<method>"
},
"name": "device_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | JSON-serializable arguments. | |
| method | Yes | Method name on window.app.local, e.g. getDeviceById. |