get_pages
Retrieve WordPress pages: returns all pages by default, or use search, filters, and page options to get one page plus the total count.
Instructions
Retrieve WordPress pages. Without search, filters or page options, it returns all pages; with them, one page and the total
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, from 1 (optional) | |
| after | No | Only items published after this date or date-time, ISO8601 in the site's time zone, e.g. '2026-11-01' (optional) | |
| order | No | Sort order (optional, default 'desc') | |
| author | No | Author user ID (optional) | |
| before | No | Only items published before this date or date-time (optional) | |
| search | No | Keyword to search for in the title and content (optional) | |
| status | No | Which pages to list (optional): 'publish' (default), 'future', 'draft', 'pending', 'private', or 'any', separated by commas. Other than 'publish', the credentials must be allowed to edit pages | |
| orderby | No | Sort field (optional, default 'date'). 'relevance' needs search | |
| per_page | No | Items per page, 1-100 (optional). With any of search, filters or page options, only one page is read (default 20 per page), and the result shows the total |