cancel_rich_menu_default
Remove the default rich menu from a LINE Official Account to stop displaying it to users.
Instructions
Cancel the default rich menu.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cancel_rich_menu_default"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/cancelRichMenuDefault.ts:19-22 (handler)The handler function that cancels the default rich menu by calling the LINE MessagingApiClient's cancelDefaultRichMenu method and returns a formatted success response.
async () => { const response = await this.client.cancelDefaultRichMenu(); return createSuccessResponse(response); }, - src/tools/cancelRichMenuDefault.ts:14-24 (registration)The register method of CancelRichMenuDefault class that defines and registers the MCP tool named 'cancel_rich_menu_default' with its description, empty input schema, and handler function.
register(server: McpServer) { 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 calls its register method to add the tool to the MCP server.
new CancelRichMenuDefault(messagingApiClient).register(server); - src/index.ts:25-25 (registration)Import statement for the CancelRichMenuDefault tool class.
import CancelRichMenuDefault from "./tools/cancelRichMenuDefault.js";