wp_list_menus
List navigation menus for a WordPress site, returning menu IDs, names, slugs, and theme locations to reference when adding menu items.
Instructions
List a site's navigation menus (id, name, slug, theme locations).
Read-only. Start here: the id or exact name/slug it returns is what you pass as
menu to wp_add_menu_item. Menu items are not fetched. Requires the REST
transport (the wpcli/SSH gateway has no menu support).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"install": "<install>"
},
"name": "wp_list_menus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| install | Yes |