Add incident note
add_incident_noteRecord a diagnosis note on a LastPing incident to document what failed and what was done. Notes are append-only and appear on the incident page in order.
Instructions
Requires the write scope or higher. Adds a diagnosis note to an incident; it appears on the incident's page in order, stored with author 'agent' (no author argument exists). Notes are append-only: no edit or delete exists, so a correction is a new note and the history stays evidence. Several notes per incident are normal, up to a cap of 50, and a closed incident still accepts them. A note can record a failure that was not fixed as well as one that was. Without a note, the incident page shows only the alert.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The diagnosis in plain words: what failed, whether it matches earlier failures (failure_signature.occurrences from list_open_incidents) and what was done, e.g. 'failed because the upstream API returned 503; same as the last three nights; retried twice'. Non-empty, not whitespace-only, at most 8192 bytes; an oversized body is rejected, never truncated. The full failure output already lives on the run. | |
| incident_id | Yes | The incident's numeric id, an entry's incident_id in list_open_incidents. An integer, not a UUID. |