drupal_drush
Executes Drush commands on a specified DDEV-managed Drupal site while safe mode enforces an allowlist to restrict allowed operations.
Instructions
Execute a drush command (safe_mode enforces allowlist)
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": {
"site": "<site>",
"command": "<command>"
},
"name": "drupal_drush"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments | |
| site | Yes | DDEV site name | |
| command | Yes | Drush command | |
| safe_mode | No | Enforce allowlist (default true) |