translate_path
Map WSL POSIX paths to Windows UNC paths or vice versa to identify the Windows equivalent of any WSL file location.
Instructions
Translate a WSL POSIX path to a Windows UNC path, or vice versa. Useful for understanding where a WSL file lives on the Windows side.
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": {
"path": "<path>"
},
"name": "translate_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path to translate | |
| distro | No | WSL distro (required for posix→unc) | |
| direction | No | Default auto-detected from the path form |