gpio_mode
Configures a GPIO pin as input or output, setting its direction so connected hardware can be read or driven correctly.
Instructions
Configure a GPIO pin's direction/mode.
mode: input (0) or output (1).
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>",
"mode": "<mode>"
},
"name": "gpio_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | Yes | ||
| mode | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |