set_rich_menu_default
Set a rich menu as the default display for all users in LINE Bot MCP Server, ensuring consistent interface presentation across the LINE messaging platform.
Instructions
Set a rich menu as the default rich menu.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| richMenuId | Yes | The ID of the rich menu to set as default. |
Implementation Reference
- src/tools/setRichMenuDefault.ts:28-31 (handler)The handler function that sets the specified rich menu as the default by calling the LINE Messaging API's setDefaultRichMenu method and wrapping the response.async ({ richMenuId }) => { const response = await this.client.setDefaultRichMenu(richMenuId); return createSuccessResponse(response); },
- Input schema definition using Zod for the 'richMenuId' parameter.{ richMenuId: richMenuIdSchema.describe( "The ID of the rich menu to set as default.", ), },
- src/tools/setRichMenuDefault.ts:20-32 (registration)The server.tool registration call that defines the tool name, description, input schema, and handler within the SetRichMenuDefault class's register method.server.tool( "set_rich_menu_default", "Set a rich menu as the default rich menu.", { richMenuId: richMenuIdSchema.describe( "The ID of the rich menu to set as default.", ), }, async ({ richMenuId }) => { const response = await this.client.setDefaultRichMenu(richMenuId); return createSuccessResponse(response); }, );
- src/index.ts:69-69 (registration)Top-level instantiation and registration of the SetRichMenuDefault tool on the main MCP server.new SetRichMenuDefault(messagingApiClient).register(server);