wp_list_pages
List pages, posts, or Elementor templates on a connected WordPress site. Returns id, title, slug, type, status, modified for each. When you already know which page you want — and you usually do, because the user gave you its URL — pass search instead of listing everything and scanning: it accepts a full URL, a slug or part of a title, and returns only matches. Listing a 150-page site to find one post_id is several very large responses to learn one integer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (1-500, default 100) | |
| detail | No | Output verbosity: "concise" (default) trims long lists to top-25 and caps size; "detailed" returns the full result. | |
| search | No | Only pages whose URL, slug or title contains this. Paste the page URL directly — it is reduced to its slug. Response reports total_before_filter so an empty result is distinguishable from an ignored filter. | |
| site_id | Yes | The WordPress site ID | |
| post_type | No | page | post | elementor_library | elementor_component (Editor V4 Components — the documents e-component widgets point at; connector ≥ 0.9.18) (default: page) |