set_control_lines
Manually drive DTR and RTS control lines on a serial port to trigger bootloader entry or custom reset circuits.
Instructions
Set the DTR / RTS modem control lines manually (bootloader entry, custom reset circuits).
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": "set_control_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dtr | No | Drive DTR high (true) or low (false). | |
| rts | No | Drive RTS high (true) or low (false). | |
| 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://. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |