Set Debug Log Api
set_debug_log_apiToggle the local node's debug log API so firmware streams LogRecord protobufs over StreamAPI, letting the recorder capture logs without a serial monitor or port conflict.
Instructions
Toggle security.debug_log_api_enabled on the local node.
When on, firmware streams its log lines as LogRecord protobufs over the StreamAPI,
so the recorder captures them through the same connection the admin tools use, with
no pio device monitor session and no port-lock conflict. send_text(wait_for_tx=True)
needs it. Persists across reboot (NVS); factory_reset wipes it. Safe to leave on
under traffic.
Returns {ok, debug_log_api_enabled}.
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": {
"enabled": "<enabled>"
},
"name": "set_debug_log_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Serial port or `tcp://host[:port]`; omit to auto-select the one likely Meshtastic device. | |
| enabled | Yes | True turns the log stream on, False turns it off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||