get_rich_menu_list
Retrieve all rich menus configured for your LINE Official Account to manage interactive message layouts and user navigation options.
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-31 (handler)The asynchronous handler function for the 'get_rich_menu_list' tool. It calls this.client.getRichMenuList() to fetch the list of rich menus and returns a success response 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/index.ts:67-67 (registration)Instantiates the GetRichMenuList tool with the messaging API client and registers it on the MCP server.new GetRichMenuList(messagingApiClient).register(server);
- src/tools/getRichMenuList.ts:17-33 (registration)The register method that performs the actual tool registration on the MCP server, specifying name, description, input schema (empty), and handler function.register(server: McpServer) { 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}`, ); } }, ); }