set_2fa
Enable two-factor authentication by verifying a TOTP code against a generated secret to secure your cPanel account.
Instructions
Enable two-factor authentication with a secret and verification code
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": {
"secret": "<secret>",
"code": "<code>"
},
"name": "set_2fa"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Current TOTP code from authenticator app to verify setup | |
| secret | Yes | The TOTP secret from generate_2fa_config |