Write to an incident's timeline
create_incident_commentAppend a comment or AI diagnosis event to an incident timeline, returning the recorded row to track updates and outcomes.
Instructions
Append a row to an incident's timeline, returning the event it wrote.
eventType says what the row records - COMMENT_ADDED (the default) for an ordinary comment, or AI_DIAGNOSIS_REQUESTED, AI_DIAGNOSIS_COMPLETED and AI_DIAGNOSIS_FAILED to record the start, result or failure of a diagnosis.
agentSessionId names the Orchestra agent session behind the write. The row is then attributed to Orchestra AI and linked to that session rather than to the API key; an agent takes the id from its ORCHESTRA_AGENT_SESSION_ID environment variable. The AI_DIAGNOSIS_* types require it. A session may write several over its life, but posting the same text twice returns the row already written.
description sets the incident's description alongside an AI_DIAGNOSIS_COMPLETED or AI_DIAGNOSIS_FAILED row, and needs edit permission on the incident. It is not applied over a description a person wrote.
The timeline is append-only: nothing can edit or delete a row once it is there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | Yes | ||
| eventType | No | What the row records. Defaults to COMMENT_ADDED. The AI_DIAGNOSIS_* types require agentSessionId. | COMMENT_ADDED |
| description | No | A summary of the cause to set as the incident's description, written in the same call as the diagnosis. Only accepted with AI_DIAGNOSIS_COMPLETED or AI_DIAGNOSIS_FAILED, and not applied over a description a person wrote. | |
| incident_id | Yes | Incident ID. | |
| agentSessionId | No | The agent session writing this row. Attributes it to Orchestra AI instead of the API key, and links the timeline back to the session. Agents read this from the ORCHESTRA_AGENT_SESSION_ID environment variable. | |
| X-Orchestra-Account-Id | No | Act on this account rather than the one the credential resolves to. Omit it to use the credential's own account. An API key is issued to a single account, so it may only name that account; an OAuth token may name any account its grant covers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||