da_legacy
Call legacy DirectAdmin CMD_API_* / CMD_* endpoints directly to perform administrative operations. Specify command, method, form data, optional user impersonation, and confirmation for POST requests.
Instructions
Call a legacy CMD_API_* / CMD_* endpoint.
Only commands that start with CMD_API_ or CMD_ are accepted.
Args: command: e.g. CMD_API_SHOW_ALL_USERS or /CMD_API_SSL method: GET or POST data: Form fields. json=yes is added automatically. impersonate: Optional user. confirm: Required for POST.
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": "da_legacy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| method | No | POST | |
| command | Yes | ||
| confirm | No | ||
| impersonate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |