nRFUtil Raw Pass-Through
nrfutil_rawRuns nrfutil commands to recover nRF52 devices stuck in serial DFU by flashing firmware packages; dfu/settings actions require confirmation and trusted arguments.
Instructions
Pass-through to nrfutil.
dfu/settings subcommands require confirm=True, or the user's answer when the client can
ask. Recovers an nRF52 left sitting in serial DFU, with no touch, as
args=["dfu", "serial", "--package", "<zip>", "--port", "/dev/ttyACM0", "-b", "115200", "--singlebank"] (adafruit-nrfutil).
Security: args is passed directly to the nrfutil binary. All arguments must come from
a trusted source; do not allow untrusted content to flow into argument lists.
Returns {exit_code, stdout, stderr, stdout_tail, stderr_tail, duration_s}.
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": {
"args": "<args>"
},
"name": "nrfutil_raw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | The nrfutil arguments, from a trusted source only. | |
| confirm | No | `True` once the user agreed; omitted, a client that can ask prompts the human. Only dfu/settings subcommands ask. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||