read_peripheral_register
Read a named peripheral register (e.g., GPIOA/ODR) from the loaded SVD to inspect STM32 hardware state during debugging.
Instructions
Reads a peripheral register using its name from the loaded SVD.
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": {
"peripheral": "<peripheral>",
"register": "<register>"
},
"name": "read_peripheral_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Optional debug-session name. Omit for the default target. | |
| register | Yes | Register name (e.g., 'ODR'). | |
| peripheral | Yes | Peripheral name (e.g., 'GPIOA'). |