Module Plugin Create
module_plugin_createCreate Drupal plugins such as blocks, fields, or views with proper scaffolding.
Instructions
Create a plugin (block, field, views, etc.) with proper scaffolding.
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": {
"machine_name": "<machine_name>",
"plugin_type": "<plugin_type>",
"plugin_id": "<plugin_id>",
"label": "<label>"
},
"name": "module_plugin_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| label | Yes | ||
| plugin_id | Yes | ||
| class_name | No | ||
| annotations | No | ||
| description | No | ||
| plugin_type | Yes | ||
| machine_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||