exec
Run commands on your Plesk server by specifying a command and optional context like subscription, stdin, or environment variables.
Instructions
Executes a command on the Plesk server and returns the result.
The command CWD is the home directory of the user
(e.g. /root for root user, or /var/www/vhosts/example.com for a subscription user).
This tool will reject long commands. Keep the total length of the command, stdin, and env vars under about 740 characters.
This tool will fail for subscriptions with no or chrooted shell access (chrootsh).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command to execute. Don't use `bash` wrapper if it is not required for proper operation. NEVER use `bash -lc` for root context to avoid printing banner. ALWAYS use `bash -lc` when running in subscription context to ensure proper environment setup. | |
| subscription | No | ||
| stdin | No | ||
| env | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||