wp_create_widget
Create a WordPress block widget by providing either block content or a structured ad creative. Includes dry-run preview and automatic cache purge.
Instructions
Create a block widget. Supply exactly one of block_content or structured ad_creative. Supports dry-run and automatic cache purge when available.
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": {
"sidebar": "<sidebar>"
},
"name": "wp_create_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview changes without writing | |
| sidebar | Yes | ||
| auto_purge | No | ||
| ad_creative | No | ||
| block_content | No |