gpio_set
Configure a GPIO pin parameter in an STM32CubeMX project, such as mode, pull, speed, label, or output level, by applying the change through the engine or .ioc edit and reload.
Instructions
Set a GPIO parameter (GPIO_Label, GPIO_Mode, GPIO_PuPd, GPIO_Speed, GPIO_OutputLevel...). Uses the engine when the CLI branch accepts it and otherwise edits the .ioc and reloads it, which produces the same file the GUI writes.
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": {
"project_id": "<project_id>",
"pin": "<pin>",
"param": "<param>",
"value": "<value>"
},
"name": "gpio_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | Yes | Pin name | |
| param | Yes | GPIO parameter name | |
| value | Yes | Value, e.g. LED or GPIO_MODE_OUTPUT_PP | |
| reload | No | Reload the .ioc after a direct edit | |
| project_id | Yes | Project id |