Download a file from WSL
wsl_downloadCopy a file from a WSL distro to Windows using wsl.exe, returning the resolved local path for verification. Requires an existing destination directory and blocks credential and MCP config locations.
Instructions
Copy a file from the distro to this machine. The local path is resolved on the Windows side and printed in the reply — check it. The destination directory must already exist; credential locations and MCP configuration on the local side are refused.
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": {
"remotePath": "<remotePath>",
"localPath": "<localPath>"
},
"name": "wsl_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Session id from wsl_connect. Optional — the file tools do not depend on a session's working directory, paths are absolute. | |
| localPath | Yes | Destination path on this machine, '~' expanded. | |
| remotePath | Yes | Absolute source path in the distro. |