wsl_create_temp
Create a throwaway WSL distro on demand for running Linux software. Import Alpine, clone an existing distro, or use a custom rootfs without touching your current setup.
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"}.
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": {
"params": "<params>"
},
"name": "wsl_create_temp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |