Menus: add item
menus_add_itemAdd an entity-linked menu item to a menu, placed last at top level or under a parent. Defaults to the entity name and Database icon; update href later to link elsewhere.
Instructions
Add a menu item for an entity. The item links to the entity's data page in the dashboard, is named after the entity in title case unless name is given, uses a Lucide icon (Database by default) and goes last at the top level or under parent. The entity must exist; to link to another path, add the item and then set href with menus_update_item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | Lucide icon name (e.g. MessageCircle, Target, FileText) | |
| name | No | Display name (defaults to entity name, title-cased) | |
| entity | Yes | Entity name (used for display name and href) | |
| parent | No | Parent menu item ID (for nested items) | |
| menu_id | Yes | Menu ID to add the item to. Find it with menus_list. |