esp32_gpio_write
Configure an ESP32 GPIO pin as output, input, or input_pullup and optionally set it high or low to control connected hardware, limited to firmware-allowed pins.
Instructions
Set a GPIO pin mode (output, input, input_pullup) and optionally drive it high or low. Pass value only, mode only, or both. Only pins in the firmware allow list can be changed.
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": {
"pin": "<pin>"
},
"name": "esp32_gpio_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | Yes | GPIO number, for example 2. | |
| mode | No | Pin mode to apply before the value. | |
| value | No | Digital level: 1 high, 0 low. |