dsh-wsl-clipboard
开发工具 活跃维护

dsh-wsl-clipboard

173787247/dsh-wsl-clipboard

从WSL环境直接读取和写入Windows剪贴板,轻量级实现跨系统数据同步,无需复杂配置即可在Linux子系统与Windows系统间流畅传递内容。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
18 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:173787247/dsh-wsl-clipboard
git clone https://github.com/173787247/dsh-wsl-clipboard.git
git clone git@github.com:173787247/dsh-wsl-clipboard.git
README.md master

dsh-wsl-clipboard

Install set: part of dsh-wsl-kit. Prefer KIT_SET=daily | llm | github | full (see kit README). Fault tree: TROUBLESHOOTING.md.

DeepSeek Harness tool: wsl_clipboard — read or write the Windows clipboard from an agent in WSL.

Part of dsh-wsl-kit.

中文说明 → README.zh.md


Why

Copying a Linux path, command, or snippet into Notepad / ChatGPT / Explorer is awkward when the agent only lives in WSL. This tool bridges the Windows clipboard via PowerShell.

Tool

Arg Required Meaning
action yes get or set
text for set UTF-8 text to place on the clipboard

Long text is truncated by maxChars (default 100000). Do not put secrets on the clipboard unless the user asks.

Install

dsh plugin --profile web add github:173787247/dsh-wsl-clipboard

Restart dsh web. New session → Tools should list wsl_clipboard.

Config

- id: dsh-wsl-clipboard
  name: dsh-wsl-clipboard
  config:
    timeoutMs: 15000
    maxChars: 100000
Key Default Meaning
timeoutMs 15000 Tool timeout
maxChars 100000 Max clipboard text length

Test

npm test

License

MIT