trello_get_list_cards
Get all cards in a Trello list to view tasks in a workflow column. Supports filtering by status and selecting specific fields.
Instructions
Get all cards in a specific Trello list. Use this to see all tasks/items in a workflow column.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | Trello API key (optional if TRELLO_API_KEY env var is set) | |
| token | No | Trello API token (optional if TRELLO_TOKEN env var is set) | |
| listId | Yes | ID of the list to get cards from (you can get this from get_lists) | |
| filter | No | Filter cards by status: "open" for active cards, "closed" for archived cards, "all" for both | open |
| fields | No | Optional: specific fields to include (e.g., ["name", "desc", "due", "labels", "members"]) | |
| compact | No | Return minimal fields only (id, name, url, listId). Default: true. Set to false for full details. |
Implementation Reference
- src/trello/client.ts:453-471 (helper)TrelloClient.getListCards() helper method. Makes API request to /lists/{listId}/cards with optional filter and fields parameters.
async getListCards(listId: string, options?: { filter?: 'all' | 'open' | 'closed'; fields?: string[]; }): Promise<TrelloApiResponse<TrelloCard[]>> { const params: Record<string, string> = {}; if (options?.filter) { params.filter = options.filter; } if (options?.fields) { params.fields = options.fields.join(','); } return this.makeRequest<TrelloCard[]>( `/lists/${listId}/cards`, { params }, `Get cards in list ${listId}` ); }