cancel_rich_menu_default
Remove the default rich menu from a LINE Official Account to stop displaying it automatically 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:14-23 (handler)The tool handler that calls the LINE Messaging API to cancel the default rich menu.
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:69-69 (registration)Registration of the cancel_rich_menu_default tool within the server.
new CancelRichMenuDefault(messagingApiClient).register(server);