set_rich_menu_default
Set a rich menu as the default display for all users in LINE Bot conversations, ensuring consistent interface presentation.
Instructions
Set a rich menu as the default rich menu.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"richMenuId": "<richMenuId>"
},
"name": "set_rich_menu_default"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| richMenuId | Yes | The ID of the rich menu to set as default. |
Implementation Reference
- src/tools/setRichMenuDefault.ts:28-32 (handler)The handler function that executes the setRichMenuDefault tool logic using the LINE Messaging API client.
async ({ richMenuId }) => { const response = await this.client.setDefaultRichMenu(richMenuId); return createSuccessResponse(response); }, ); - The schema definition for the set_rich_menu_default tool input parameters.
{ richMenuId: richMenuIdSchema.describe( "The ID of the rich menu to set as default.", ), }, - src/tools/setRichMenuDefault.ts:15-33 (registration)The registration logic for the set_rich_menu_default tool in the MCP server.
register(server: McpServer) { const richMenuIdSchema = z .string() .describe("The ID of the rich menu to set as default."); 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); }, ); }