royal-mcp__wp_set_featured_image
Set or replace the featured image on a post or page. Accepts EITHER an existing media_id from wp_get_media, OR an image_url that will be downloaded into the library first. Pass media_id=0 to remove the featured image. (site: demo.royalplugins.com) Through Royally: waits for a person to approve it in Royally; nothing on the site changes until then.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | Post or page ID | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| alt_text | No | Alt text to persist on the attachment. Works for both media_id and image_url input paths. | |
| media_id | No | Existing attachment ID (use 0 to remove the featured image) | |
| image_url | No | Public HTTPS image URL to download and use instead of media_id |