Upload a file into WSL
wsl_uploadCopy a file from the Windows host into a WSL distro using absolute paths, while refusing credential and MCP configuration files.
Instructions
Copy a file from this machine into the distro. The local path is resolved on the Windows side (a POSIX-looking path becomes \…), and the reply prints it — check it. Credential files 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": {
"localPath": "<localPath>",
"remotePath": "<remotePath>"
},
"name": "wsl_upload"
}
}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 | Path on this machine, '~' expanded. | |
| remotePath | Yes | Absolute destination path in the distro (the file, not its directory). |