execute_command
Execute non-interactive shell commands on a remote server, returning stdout, stderr, and exit code. Ideal for status checks, file operations, and scripts without manual interaction.
Instructions
Execute a non-interactive shell command on a remote server and return stdout/stderr/exit_code.
When to use: Status checks (df, ls), file ops (cp, mv), and scripts that do not require live interaction. When NOT to use: Do not run interactive tools (vim, htop, top) or commands that require manual prompts.
Example: execute_command(connection_id="srv1", command="df -h")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to execute (non-interactive only) | |
| connection_id | Yes | Unique identifier of the server connection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||