royal-mcp__wp_get_posts
Get WordPress posts (supports custom post types). Each item includes content_length (bytes of stored post_content) so you can size-check before fetching — on page-builder sites a short page can still carry a very large body. (site: demo.royalplugins.com) Through Royally: read-only, runs straight away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Search term | |
| status | No | Post status (publish, draft, etc) | |
| include | No | Up to 100 post IDs. Returns exactly those posts (any status you can read, trashed posts included) in this order; per_page and search are ignored. | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| per_page | No | Number of posts (max 100) | |
| post_type | No | Post type slug (default: post). Use wp_get_post_types to discover available types | |
| with_content | No | When true, each item adds content_text (content with shortcodes and tags removed, whitespace collapsed, at most 3000 characters) and content_truncated. |