Get the raw content of a theme CSS/JS asset
get_asset_contentFetch raw CSS or JS asset content from a WordPress site using a same-host URL discovered via get_theme_styles, with server-side SSRF protection.
Instructions
Fetch the raw text content of a CSS or JS asset URL discovered via get_theme_styles. The URL must belong to the same host as the connected WordPress site (enforced server-side as a basic SSRF guard). Calls the site-local wp-mcp-bridge/v1 REST route.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "get_asset_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute URL of the CSS/JS asset to fetch, as returned by get_theme_styles. |