Find pin functions
find_pinsReturns the pins of a part that can carry a signal, with what the code must select to route it there, such as the alternate function, or every signal of one pin. Use it to pick the pin for a peripheral signal such as USART2_TX, to get the alternate function number for it, or to see what else a pin can do. Pin data comes from the vendors' own pin files, which the data has for ST parts, per package. For another part it says so.
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": {
"part": "<part>"
},
"name": "find_pins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | No | A pin, for example PA9. Give this or a signal. | |
| part | Yes | The part number. With the package, as in STM32F407VGT6, the answer is for that package. Without it, as in STM32F407VG, for every package. | |
| signal | No | A signal as the vendor names it: USART2_TX, I2C1_SCL, TIM3_CH1, SPI1_MOSI, ADC1_IN5. |