Actions46
- Attachment Actions
- Auth Actions
- Board Actions
- Card Actions
- Column Actions
- Comment Actions
- Form Actions
- Label Actions
- Settings Actions
- Storage Actions
- Webhook Actions
- Workspace Actions
Comment → Add
AI-generatedSummary
Add a comment to a card
Inputs
- cardId (required) — ID of the parent card to which the comment will be added
- content (required) — Comment text (Markdown supported)
- author — Comment author name
- boardId — Optional target board ID. Leave empty to use the default board.
- transport — Connection mode: 'api' for Remote API, 'sdk' for Local SDK (requires kanban-lite installed). Defaults to 'api'.
- id — Unique ID of the record. For comment operations this may reference an existing comment when updating or deleting.
Output shape
The created comment object returned as a JSON payload. Shape is normalized consistent across API and SDK transport modes via the shared normalizeResult helper. In API mode a 204 response yields no data; otherwise the parsed JSON response body is returned.
Both Remote API and Local SDK transport modes produce identical normalized outputs. The operation routes through the transport abstraction: API mode POSTs to /api/cards/{cardId}/comments; SDK mode calls s.addComment(cardId, params, boardId).
Examples
Example 1: Add a comment via Remote API
Set transport to 'api', provide cardId and content; author is optional.
Example 2: Add a comment via Local SDK
Set transport to 'sdk', ensure kanban-lite is installed, provide cardId, content, and optionally author and boardId.