Diff global styles against theme.json
diff_global_stylesIdentify user overrides in the WordPress Site Editor before editing theme.json or shipping updates. Shows JSON-path diffs of global styles, matched by slug, and lists custom templates and parts.
Instructions
Show exactly what the Site Editor has overridden in a block theme: a JSON-path diff of the user's global-styles customisations against the theme's own theme.json values (palette entries are matched by slug), plus every template and template part whose source is "custom" — edited in the Site Editor and therefore no longer following the theme's files. Use it before editing theme.json (a user override silently wins over file changes) or before shipping a theme update.
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": "diff_global_styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| max_entries | No | Cap on diff entries returned. | |
| include_unchanged | No | Also list user values that merely restate the theme's value — harmless, but they pin the value so later theme.json changes will not show through. |