cancel_rich_menu_default
Remove the default rich menu from your LINE bot to stop displaying it automatically to users when they interact with your account.
Instructions
Cancel the default rich menu.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/cancelRichMenuDefault.ts:19-22 (handler)The handler function that executes the tool logic: cancels the default rich menu via the LINE Messaging API and returns a formatted success response.async () => { const response = await this.client.cancelDefaultRichMenu(); return createSuccessResponse(response); },
- src/tools/cancelRichMenuDefault.ts:15-23 (registration)Registers the 'cancel_rich_menu_default' tool on the MCP server within the CancelRichMenuDefault class's register method, including name, description, empty input schema, and handler.server.tool( "cancel_rich_menu_default", "Cancel the default rich menu.", {}, async () => { const response = await this.client.cancelDefaultRichMenu(); return createSuccessResponse(response); }, );
- src/index.ts:70-70 (registration)Instantiates the CancelRichMenuDefault tool with the messaging API client and registers it on the main MCP server.new CancelRichMenuDefault(messagingApiClient).register(server);