esp32_gpio_read
Read the mode and digital level of a single GPIO pin on an ESP32 board, restricted to firmware allow-listed pins.
Instructions
Read the mode and digital level of one GPIO pin. Only pins in the firmware allow list can be read.
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_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | Yes | GPIO number, for example 2. |