Set Config
set_configSet one Meshtastic config field by dot-path to update device settings; firmware saves it automatically, and no reboot call is needed to commit.
Instructions
Set one config field via dot-path and write it to the device.
Idempotent: calling with the same path+value twice leaves identical state. The
firmware saves the change itself, and most sections (such as network) restart the
radio on their own, so the device may drop off the port for a few seconds. On
firmware 2.8.0 and later the lora section applies live without a restart;
older firmware restarts for it too. No reboot() call is needed to commit.
Returns {ok, path, section, parent, old_value, new_value}.
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": {
"path": "<path>",
"value": "<value>"
},
"name": "set_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Dot-path of one scalar field, such as "lora.region", "lora.modem_preset", "device.role", "mqtt.enabled" or "mqtt.address". | |
| port | No | Serial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device. | |
| value | Yes | The new value, such as "US", "LONG_FAST", "ROUTER", True or "host". Enum fields accept their name (case-insensitive) or int. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | Yes | ||
| parent | Yes | `localConfig` or `moduleConfig` | |
| section | Yes | ||
| new_value | Yes | enum fields by name | |
| old_value | Yes | enum fields by name |