pin_lock
Locks or unlocks a project pin to control whether STM32CubeMX code generation keeps or changes its mapping; set locked to true to preserve the pin assignment.
Instructions
Lock or unlock a pin so generation keeps (or may change) its mapping (lock pin <pin> <locked>).
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>"
},
"name": "pin_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | Yes | Pin name | |
| locked | No | true to lock | |
| project_id | Yes | Project id |