Find Page (ID by Name / Name by ID)


Looks up pages to resolve a page ID from a title/name, or a title from a page ID. Use this FIRST whenever the user refers to a page by its name and another ability requires a page ID. Provide "search" with the full or partial page title, or provide "id" to get that page's details. Searches all statuses. Returns up to 10 matches plus the total number of matches.

Property Value
Ability slug mosmcp/page-find
Wire tool name mosmcp__page-find
Category Pages (mosmcp-pages)
Plan Free

 

Required access

Requirement Value
Capability edit_pages
Minimum default role Editor
Annotations readOnly: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
search string (min length 1) — Full or partial page title/name to search for. Provide either this or "id".
id integer (min 1) — A page ID to look up the title and details for. Provide either this or "search".

 

Output schema

Field Type Required
showing integer Yes
total integer Yes
matches object[] Yes
matches[].id integer Yes
matches[].title string Yes
matches[].status string Yes
matches[].author_name string
matches[].date string
matches[].edit_url string
notes string[]

 

Example

Sample prompt
What's the ID of the Contact Us page?

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 35,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__page-find",
    "arguments": {
      "input": {
        "search": "Contact"
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 35,
  "result": {
    "isError": false,
    "structuredContent": {
      "showing": 1,
      "total": 1,
      "matches": [
        {
          "id": 42,
          "title": "Contact Us",
          "status": "publish",
          "author_name": "Jane Doe",
          "date": "2026-03-14 09:12:00",
          "edit_url": "https://example.com/wp-admin/post.php?post=42&action=edit"
        }
      ]
    }
  }
}

 

Edge cases / errors

  • Neither search nor id provided → refused with missing_input.
  • id that is not a page, or one the caller cannot read → an empty matches list rather than an error.
  • search matches titles only, across all statuses, newest-modified first, at most 10 results; users who cannot edit others' pages only see their own.
  • No page matches but a post or custom item has that title → notes points to it by ID and suggests mosmcp/post-find or mosmcp/cpt-get.

 


<< Previous Next >>
Duplicate Page Get Page

For more information about the Secure MCP Server for WordPress plugin, explore the following resources:

Product Overview | Pricing | Try for Free | Documentation

If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.