WSL is excellent at running Linux tooling on a Windows machine, but one boundary stays stubbornly hard: the clipboard. A program running inside a distribution cannot reach the Windows GUI clipboard through the normal interop channels, so copy-paste workflows that agents and automation depend on break at exactly the moment they are needed.
The gap is real and specific
wsl.exe interop is powerful for files and commands, but it does not expose the GUI clipboard. When an agent captures a screenshot, extracts text from a document, or generates code and wants it on the Windows clipboard for a human to paste, there is no clean path. Workarounds involve shelling out to clip.exe with careful quoting, or writing temporary files and reading them back, both of which are fragile and lossy.
Read and write through the Windows layer
wslclip talks to the Windows clipboard directly through PowerShell and the .NET clipboard APIs, exposed as both a CLI and an MCP tool set. wslclip get returns the current text on the Windows clipboard; wslclip set <text> puts text there. The MCP tools get_clipboard_text and set_clipboard_text do the same for agents that prefer tool calls over shell commands.
Keep it simple and reliable
The implementation deliberately uses the Windows clipboard APIs rather than trying to tunnel through WSL interop. That keeps the behavior predictable: what you set is what appears on the Windows side, and what is on the Windows side is what you get. Round-trip tests verify the path end to end.
Where it fits
wslclip is part of a growing set of Windows-first tools for AI agents: screenshot capture, environment management, service control, window management, process tracing, and more. Each solves one sharp problem with a small, focused surface area.
Explore wslclip · Source and documentation
PUT THE STORY INTO PRACTICEExplore wslclip