jumpserver_exec
Run a single read-only command on the current bastion asset and return stdout with the real exit code; use for simple checks, not shell loops or substitutions.
Instructions
Run ONE simple command on the CURRENTLY entered asset and return stdout plus the real exit code (completion is detected by a unique marker, never by waiting a fixed time). Send one simple read-only command — no for/if loops, no $(...) substitution, no multi-statement one-liners, because READ_ONLY classifies every command statically and blocks shell structure. For several checks on one target use jumpserver_batch.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"command": "<command>"
},
"name": "jumpserver_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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). |