session_login_as
Switch the current session to another DirectAdmin account for direct management. Use it to perform actions as that user when you need persistent access, rather than per-request impersonation.
Instructions
Switch the session into another account (login-as).
Prefer the impersonate= argument on individual tools — it does not mutate the long-lived session.
Args: username: Account to impersonate. confirm: Required.
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": {
"username": "<username>"
},
"name": "session_login_as"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| username | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |