jumpserver_run
Execute one shell command on a target asset through JumpServer by connecting or reusing a session, switching assets as needed, and returning structured output.
Instructions
Run ONE simple command on a target reachable through JumpServer: connects (or reuses the session), switches asset when necessary, verifies the target, executes, and returns structured output. Same command-style limits as jumpserver_exec. For MULTIPLE metrics on one target call jumpserver_batch ONCE instead of calling this repeatedly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Target asset IP or name, e.g. 203.0.113.101 | |
| command | Yes | Shell command to execute on the remote asset. | |
| confirm | No | Set true only after the user approved these command(s). The first attempt returns COMMAND_APPROVAL_REQUIRED with the reason. | |
| timeout | No | Timeout in seconds (default: configured command timeout, max 600). | |
| accountIndex | No | The account ID shown by KoKo at the `ID>` prompt (usually 1 or 2; matches the number on the screen). |