wsl_create_temp
Provision a temporary WSL distro on demand for running Linux software without affecting existing installations. Supports downloading Alpine, cloning from an existing distro, or importing a local tar.
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 |