ssh_exec
Runs allow-listed shell commands on a preset SSH host, returning stdout, stderr, and exit code while enforcing approval prompts and audit logging.
Instructions
Run a shell command on the preset's SSH host. The command must
match one of the preset's allowed_commands regexes (anchored
^...$). Returns stdout, stderr, and exit_code. Key-based auth
only; host key is verified against the user's known_hosts file.
Sensitive presets trigger the approval prompt. If the user
previously approved a time-boxed window for this preset+action,
the call proceeds without a new prompt and is recorded as
'windowed' in the audit log. Every call is recorded to the audit log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| preset_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stderr | Yes | ||
| stdout | Yes | ||
| exit_code | No |