Menu Toolswordpress_get_menu

wordpress_get_menu

Get a WordPress navigation menu with all its items (includes WPML translation info if available).

wordpress_get_menu

Get a navigation menu with all its items. Includes WPML translation info if available.

Parameters

1 parameter, 1 required.

NameTypeRequiredWhat it is
idnumberyesMenu ID

Example call

The smallest valid call, with the required parameters only:

{
  "name": "wordpress_get_menu",
  "arguments": {
    "id": 123
  }
}

Response

{
  "success": true,
  "menu": {
    "id": 10,
    "name": "Primary Menu",
    "items": [
      {
        "id": 1001,
        "title": "Home",
        "url": "/",
        "parent": 0
      }
    ]
  }
}

What it changes

Nothing. It only reads, so there is nothing to approve and nothing to undo.

When it fails

The failures seen most often on real sites in the last 30 days, most common first:

  • rest_no_route: The WordPress site has no such endpoint. Almost always an old plugin version, or a security plugin blocking the REST API. Update Respira for WordPress on the site and try again.

How long it takes

A typical call takes about 1.4 seconds. 19 in 20 finish within 3.3 seconds. Measured on real sites over the last week, so it includes the site's own hosting.

Availability

Works on any WordPress site, whichever page builder it uses. Available since Respira 1.0.0.

Example Prompts

  • "Get menu 10"
  • "Show me the items in the primary menu"