reset_device
Pulse DTR/RTS lines to reboot connected boards and capture boot output. Supports Arduino-style and ESP32 reset methods to diagnose startup problems.
Instructions
Reboot the board by pulsing DTR/RTS and return what it prints while booting. Only works on boards that wire those lines to reset (most USB dev boards do).
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": {
"port": "<port>"
},
"name": "reset_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port device from list_ports (e.g. /dev/cu.usbserial-0001, /dev/ttyUSB0, COM3), or a pyserial URL such as socket://host:port, rfc2217://host:port or loop://. | |
| method | No | dtr = Arduino-style auto-reset; rts = ESP32/ESP8266 dev boards (EN pin); auto = both sequences (safe for either family). | auto |
| wait_s | No | Seconds to capture boot output after the reset (0 = do not read). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | No | Raw bytes as hex when as_hex=true. | |
| text | Yes | Decoded data (undecodable bytes become U+FFFD). | |
| bytes | Yes | ||
| error | No | ||
| timed_out | Yes | True if nothing arrived before the timeout. |