update_card
Modify Trello card details such as title, description, due date, or labels to keep project tasks current and organized.
Instructions
Update a Trello card
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_id | Yes | ||
| updates | Yes |
Implementation Reference
- src/apis/trello/trello.ts:94-100 (handler)The main handler function for the 'update_card' tool. It validates configuration, extracts arguments, and calls the client's updateCard method to perform the update.async update_card(args: Record<string, unknown>) { if (!cfg.trelloKey || !cfg.trelloToken) throw new Error("TRELLO_KEY/TRELLO_TOKEN are not configured"); const cardId = String(args.card_id || ""); if (!cardId) throw new Error("card_id is required"); const updates = (args.updates as Record<string, unknown>) || {}; return client.updateCard(cardId, updates); },
- src/apis/trello/trello.ts:59-70 (registration)Tool registration for 'update_card', including name, description, and input schema definition.{ name: "update_card", description: "Update a Trello card", inputSchema: { type: "object", properties: { card_id: { type: "string" }, updates: { type: "object" }, }, required: ["card_id", "updates"], }, },
- src/apis/trello/trello.ts:26-28 (helper)Helper method in TrelloClient that performs the actual API request to update a card.updateCard(cardId: string, updates: Record<string, unknown>) { return this.request(`/cards/${cardId}`, { method: "PUT", query: this.authQuery(updates as any) }); }