read_variable
Reads the value of a C variable currently in scope during STM32 firmware debugging, allowing AI agents to inspect live target state without parsing raw GDB output.
Instructions
Reads the value of a C variable currently in scope.
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": {
"name": "<name>"
},
"name": "read_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the variable to read. | |
| session | No | Optional debug-session name. Omit for the default target. |