secure_execute_command
Execute read-only shell commands (e.g., ls, cat) securely in an active SSH session and retrieve stdout, stderr, and exit codes without altering system state.
Instructions
Run a read‑only shell command (i.e., one that does not mutate state) in an existing SSH session and return stdout/stderr/exitCode.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | Read‑only shell command to execute (e.g., ls, cat). | |
connection_id | Yes |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"command": {
"description": "Read‑only shell command to execute (e.g., ls, cat).",
"type": "string"
},
"connection_id": {
"type": "string"
}
},
"required": [
"connection_id",
"command"
],
"type": "object"
}