Ddev Exec
ddev_execRun shell commands inside a DDEV project's container by specifying the command and optional project directory. Use it to execute Drush, Composer, or other CLI tasks within the project environment.
Instructions
Run command in the container of the DDEV project under
project_name (a directory containing .ddev).
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": {
"command": "<command>"
},
"name": "ddev_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| project_name | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||