Device Info
device_infoConnect to a Meshtastic node via serial or TCP, auto-select the likely device, and return identity, firmware, hardware, region, channel, and node summary; timeout hints if USB serial is wedged.
Instructions
Connect via meshtastic.SerialInterface and return a summary of the node.
A board whose USB serial has wedged fails after timeout_s plus a short grace with a
hint to power-cycle it (uhubctl_cycle).
Returns {port, my_node_num, long_name, short_name, firmware_version, hw_model, region, num_nodes, primary_channel, modem_preset, channel_num, display}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "device_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Serial port or `tcp://host[:port]`. Omitted, the one likely-Meshtastic device is auto-selected; otherwise the tool errors with the candidate list. | |
| timeout_s | No | Seconds to wait for the node to answer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| region | No | ||
| display | No | ||
| hw_model | No | ||
| long_name | No | ||
| num_nodes | No | ||
| short_name | No | ||
| channel_num | No | ||
| my_node_num | No | ||
| modem_preset | No | ||
| primary_channel | No | ||
| firmware_version | No |