wsl_run
Run a shell command inside a WSL distro to get stdout, stderr, and exit code.
Instructions
Run a shell command inside a WSL distro and capture stdout/stderr/exit code.
Args: params (WslRunInput): distro, command, optional user, cwd and timeout.
Returns: str: JSON {"ok": true, "distro": "...", "returncode": N, "stdout": "...", "stderr": "..."}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |