add-comment
Add comments to Trello cards to provide updates, share information, or track progress within your boards.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardId | Yes | ID of the card to comment on | |
| text | Yes | Comment text |
Implementation Reference
- src/tools/card-tool-handlers.ts:95-98 (handler)Handler function that executes the 'add_comment' tool logic by calling the card service.add_comment: async (args: any) => { const cardService = ServiceFactory.getInstance().getCardService(); return cardService.addComment(args.cardId, args.text); },
- src/tools/card-tools.ts:277-294 (schema)Schema definition for the 'add_comment' tool, including input parameters validation.{ name: "add_comment", description: "Add a comment to a card. Use this tool to add notes or feedback to a card.", inputSchema: { type: "object", properties: { cardId: { type: "string", description: "ID of the card" }, text: { type: "string", description: "Text of the comment" } }, required: ["cardId", "text"] } },
- src/services/card-service.ts:145-147 (helper)Supporting service method that performs the actual API call to add a comment to a Trello card.async addComment(cardId: string, text: string): Promise<any> { return this.trelloService.post<any>(`/cards/${cardId}/actions/comments`, { text }); }