ecp_shell_exec
Run a shell command in a hosting account container as the account user and return exit code, stdout, and stderr, with every command requiring approval before execution.
Instructions
Run one shell command (bash -lc) in this hosting account's container as the account user and return its exit code, stdout and stderr. The user is asked to approve every command before it runs; if they decline, nothing runs. Non-interactive: no TTY and no stdin, so anything that prompts (sudo, interactive installers, read) fails immediately instead of waiting. timeout_seconds defaults to 60, max 300 - the whole process tree is killed at the timeout, so don't use this to start long-running servers (use ecp_apps_deploy_step start or ecp_supervisor_* instead). stdout/stderr are each capped at 512 KB (see *_truncated). cwd defaults to the account's home directory; a relative cwd is resolved against it. Prefer a dedicated tool when one exists (files, databases, git pull, asdf, supervisor) - they're safer and give structured results.
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": "ecp_shell_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| command | Yes | ||
| timeout_seconds | No |