scaffold_component
Generate ready-to-use WordPress component boilerplate for plugins, themes, blocks, and more, with built-in security patterns and i18n support.
Instructions
Generate boilerplate code for WordPress components. Types: plugin, theme, block, custom-post-type, taxonomy, rest-endpoint, widget, shortcode, elementor-widget, meta-box, settings-page, cron-job, ajax-handler. Returns ready-to-use code with proper WordPress patterns, security, and i18n.
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": {
"type": "<type>",
"name": "<name>",
"conversationId": "<conversationId>"
},
"name": "scaffold_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the component (e.g., 'My Plugin', 'hero-section', 'book'). | |
| slug | No | Optional slug override. If omitted, generated from name. | |
| type | Yes | The type of WordPress component to scaffold. | |
| namespace | No | PHP namespace or prefix (e.g., 'MyPlugin', 'myplugin'). If omitted, generated from name. | |
| description | No | Description of the component. | |
| conversationId | Yes | The conversation ID obtained from learn_wordpress_api. |