royal-mcp__wp_update_global_styles
Change the site's global styles (Site Editor > Styles) on a block theme. styles and settings are objects in theme.json shape, e.g. {"color":{"background":"#ffffff"},"elements":{"link":{"color":{"text":"#0055aa"}}}}; by default they are merged into what is saved (objects key by key, lists such as a colour palette replaced whole); replace: true saves them as given. Saved through WordPress's own global styles endpoint, so its checks and filtering apply; values WordPress did not keep are listed in not_kept. dry_run shows what would be saved. Requires edit_theme_options. Returns an undo token; undo refuses when the styles were changed again since, unless force. (site: demo.royalplugins.com) Through Royally: waits for a person to approve it in Royally; nothing on the site changes until then.
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": "royal-mcp__wp_update_global_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| styles | No | theme.json "styles" values to set. | |
| dry_run | No | ||
| replace | No | Save styles / settings exactly as given instead of merging (default false). | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| settings | No | theme.json "settings" values to set. |