debug_registers
Reads core or full register values from a halted STM32 session—PC, LR, SP, xPSR, r0–r12, MSP/PSP—and annotates PC/LR with function and source line when an ELF is loaded.
Instructions
Read core registers while the core is halted.
Args: session_id: Session ID from debug_session_start. regs: "core" (default) = PC, LR, SP, xPSR; "all" = full register dump (r0-r12, SP, LR, PC, xPSR, MSP/PSP, CONTROL...); or a single register name like "r5" or "pc".
Returns: Register values in hex. PC and LR are annotated with function and source line when an ELF is loaded.
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": {
"session_id": "<session_id>"
},
"name": "debug_registers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regs | No | core | |
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |