line-rich-menu
SKILL.md
LINE Rich Menu Skill
This skill provides specialized knowledge and workflows for creating interactive and professional Rich Menus on the LINE Platform.
Core Capabilities
1. Rich Menu Management
- Creation: Defining the
Rich Menu Objectwith tap areas and actions. - Image Upload: Attaching PNG/JPG assets (up to 1MB) to a menu ID.
- Assignment: Setting a default menu for all users or linking specific menus to individual user IDs.
- Aliases: Creating and updating aliases for seamless tab switching.
2. Interaction & Actions
- Actions: URI, Postback, Message, Datetimepicker, and Rich Menu Switch.
- Tab Switching: Using the
richmenuswitchaction with aliases to simulate multi-page menus.
See references/rich-menus.md for detailed JSON schemas, API endpoints, and image specifications.
Common Workflows
Creating a Basic Rich Menu
- Prepare Image: Create a 2500x1686 or 2500x843 image.
- Define JSON: Create the rich menu object with bounds (x, y, width, height) for each button.
- Run API: Call
POST /v2/bot/richmenuand save therichMenuId. - Upload Image: Call
POST /v2/bot/richmenu/{richMenuId}/contentwith the image binary. - Set Default: Call
POST /v2/bot/user/all/richmenu/{richMenuId}.
Implementing Tab Switching (Pagination)
- Create Multiple Menus: Build Menu A and Menu B with images representing tabs.
- Register Aliases: Create
alias-afor Menu A andalias-bfor Menu B viaPOST /v2/bot/richmenu/alias. - Add Switch Action:
- In Menu A's tap area: Use
type: "richmenuswitch"withrichMenuAliasId: "alias-b". - In Menu B's tap area: Use
type: "richmenuswitch"withrichMenuAliasId: "alias-a".
- In Menu A's tap area: Use
- Deploy: Set the initial menu (e.g., Menu A) as default.
Best Practices
- Coordinate Calculation: Always use the top-left corner (0,0) as the origin.
- Display Priority: Remember that Per-user settings always override the Default setting.
- Security: Never expose Channel Access Tokens in client-side code. Use server-side calls only.
Weekly Installs
2
Repository
yangnim21029/li…-all-apiFirst Seen
Feb 21, 2026
Security Audits
Installed on
opencode2
gemini-cli2
antigravity2
github-copilot2
codex2
kimi-cli2