track_variable
Samples a firmware variable at set intervals in the background, then returns collected data to analyze trends or leaks in STM32 debug sessions.
Instructions
Background variable tracking: action='start' (needs variable + interval_ms), 'stop', or 'get' (returns the sampled data for trend/leak analysis).
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": {
"action": "<action>"
},
"name": "track_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do. | |
| session | No | Optional debug-session name. Omit for the default target. | |
| variable | No | For 'start': the variable/expression to sample. | |
| interval_ms | No | For 'start': polling interval in ms. |