energy_between_messages
Calculates energy consumed between matching UART log messages in an Otii recording, with optional end marker and occurrence selection to isolate one firmware cycle.
Instructions
Energy from the n:th (0-based occurrence) UART log line exactly equal to start_message
to the next line exactly equal to end_message. end_message defaults to start_message, which
gives one full cycle for firmware that prints a marker once per cycle. Use occurrence >= 1
to skip a first cycle that includes start-up. Defaults to the latest recording.
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": {
"start_message": "<start_message>"
},
"name": "energy_between_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | ||
| occurrence | No | ||
| end_message | No | ||
| recording_id | No | ||
| start_message | Yes |