get_lists
Retrieve all lists from a Trello board using the board ID to organize and manage tasks, cards, and workflows.
Instructions
Get all lists in a board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | Yes |
Implementation Reference
- src/index.ts:170-176 (handler)The handler function for the 'get_lists' tool in the CallToolRequestSchema handler. It parses the arguments, calls trelloClient.getLists(board_id), and returns the JSON stringified lists.case 'get_lists': { const { board_id } = (request.params.arguments as { request: GetListsRequest }).request; const lists = await this.trelloClient.getLists(board_id); return { content: [{ type: 'text', text: JSON.stringify(lists, null, 2) }], }; }
- src/index.ts:65-84 (registration)Registration of the 'get_lists' tool in the ListToolsRequestSchema handler, including name, description, and inputSchema.{ name: 'get_lists', description: 'Get all lists in a board', inputSchema: { type: 'object', properties: { request: { type: 'object', properties: { board_id: { type: 'string', description: 'ID of the board', }, }, required: ['board_id'], }, }, required: ['request'], title: 'get_listsArguments', },
- src/types.ts:45-47 (schema)TypeScript interface defining the input parameters for get_lists request.export interface GetListsRequest { board_id: string; }
- src/trello-client.ts:23-28 (helper)The TrelloClient method that fetches lists for a board via Trello API, called by the tool handler.async getLists(boardId: string): Promise<List[]> { const response = await axios.get( `${this.baseUrl}/boards/${boardId}/lists?${this.getAuthParams()}` ); return response.data; }