shell-runner
Run shell commands on a remote host connected through QuickDesk. Commands execute via cmd /C on Windows or sh -c on Unix.
Tools
run_command
Execute a shell command on the remote host.
- command (string, required) — the shell command to execute
- working_dir (string, optional) — working directory for the command
- timeout_secs (integer, optional) — timeout in seconds (default: 60)
Returns:
{
"exit_code": 0,
"stdout": "...",
"stderr": "...",
"stdout_truncated": false,
"stderr_truncated": false
}
Output is truncated at 512 KB per stream if the command produces large output.
Workflow
- Call
run_commandwith the desired command string. - Check
exit_code— 0 means success, non-zero indicates failure. - If
exit_codeis non-zero, inspectstderrfor error details. - For long-running commands, increase
timeout_secsbeyond the 60-second default. - Use
working_dirto execute commands in a specific directory without changing global state.
Source: barry-ran/QuickDesk — distributed by TomeVault.