Picotool Raw Pass-Through
picotool_rawRun picotool commands directly against a Raspberry Pi Pico or RP2040/RP2350 device to load, erase, save, or reboot firmware, returning exit code and captured output.
Instructions
Pass-through to picotool.
load/reboot/save/erase require confirm=True, or the user's answer when the client can ask; other subcommands run without asking.
Security: args is passed directly to the picotool 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": "picotool_raw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | The picotool arguments, from a trusted source only. | |
| confirm | No | `True` once the user agreed; omitted, a client that can ask prompts the human. Only load/reboot/save/erase ask. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||