wsl_create_temp
Provision a throwaway WSL distro on demand to run Linux software safely. Downloads Alpine minirootfs by default, or clones/imports custom rootfs, leaving existing distros untouched.
Instructions
Provision a throwaway WSL distro on demand for running Linux software.
By default downloads a tiny Alpine minirootfs (a few MB) and imports it, leaving existing distros untouched. Use wsl_run to run commands in it and wsl_destroy to tear it down. Alternatively clone_from an existing distro or import base_tar.
Args: params (WslCreateInput): optional name, rootfs_url, clone_from, base_tar, timeout.
Returns: str: JSON {"ok": true, "name": "...", "install_dir": "...", "source": "alpine"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |