get_rich_menu_list
Retrieve all rich menus from your LINE Official Account to manage interactive message interfaces for user engagement.
Instructions
Get the list of rich menus associated with your LINE Official Account.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/getRichMenuList.ts:22-32 (handler)Handler function that fetches the rich menu list using the LINE Messaging API client and returns a success or error response.async () => { try { const response = await this.client.getRichMenuList(); return createSuccessResponse(response); } catch (error) { return createErrorResponse( `Failed to broadcast message: ${error.message}`, ); } }, );
- src/tools/getRichMenuList.ts:18-32 (registration)Registers the 'get_rich_menu_list' tool with MCP server, including name, description, empty input schema, and the handler function.server.tool( "get_rich_menu_list", "Get the list of rich menus associated with your LINE Official Account.", {}, async () => { try { const response = await this.client.getRichMenuList(); return createSuccessResponse(response); } catch (error) { return createErrorResponse( `Failed to broadcast message: ${error.message}`, ); } }, );
- src/index.ts:67-67 (registration)Instantiates the GetRichMenuList class with the messaging API client and calls its register method to add the tool to the main MCP server.new GetRichMenuList(messagingApiClient).register(server);
- src/index.ts:32-32 (registration)Imports the GetRichMenuList tool implementation.import GetRichMenuList from "./tools/getRichMenuList.js";