← All help topics

Windows Subsystem for Linux

On Windows computers with WSL and at least one Linux distro, SolutionMCP adds the wsl pack: 20 tools to work inside your Linux distros from any AI app. Without a distro, the pack doesn't appear.

What the AI can do

ToolsWhat they do
wsl_distros, wsl_system_infoList your distros, and show a distro's version, memory, uptime and users.
wsl_list, wsl_read, wsl_infoList a folder, read a file, and show a file's details.
wsl_find, wsl_grepFind files by name, and search inside files.
wsl_write, wsl_mkdir, wsl_copy, wsl_moveCreate and change files and folders. Moving never overwrites a file.
wsl_deleteDelete a file or folder for good. It refuses /, the home folder and your Windows drives.
wsl_chmod, wsl_chownChange permissions and owners.
wsl_disk_usageFree space, and the biggest things in a folder.
wsl_services, wsl_service_controlList systemd services, and start, stop, restart, enable or disable one.
wsl_aptSearch, install, remove and update packages.
wsl_powerShut down WSL, or stop one distro, to free memory.
wsl_runRun any command. Always asks first.

Good to know

  • Leave the distro empty to use your default distro. The AI can name another one, like Ubuntu-22.04.
  • Paths can be absolute (/etc), start with ~ (your Linux home), or be relative to your Linux home.
  • Deleting in WSL is permanent: there's no Recycle Bin inside Linux.
  • Commands sent to wsl_run are checked against the same blocked list as the terminal tool, so things like sudo and shutdown are refused.
  • wsl_apt, wsl_service_control and wsl_chown run as the Linux root user, so they ask first in Balanced mode.
  • wsl_services needs systemd, which current Ubuntu on WSL has turned on.

See also Tools for your system.