run-command
Execute shell commands on a remote Linux or Windows server over SSH. Run single-line commands with approval for destructive or privileged actions.
Instructions
Execute an arbitrary shell command on the remote server. May modify the system. Commands classified destructive or privileged go through the approval gate; approvalPolicy on the profile decides whether that is a prompt, an automatic allow, or a refusal. Single-line only: a command containing a line break is refused, so upload a multi-line script with sftp-upload and run it by path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tty | No | Allocate a pseudo-terminal | |
| command | Yes | Shell command to execute | |
| profile | No | Profile name | |
| session | No | Run in an existing interactive session (stateful) |