Install
openclaw skills install cli-vscodeCommand-line interface for VSCode to open files, install/list extensions, manage workspaces, and check editor status with JSON output support.
openclaw skills install cli-vscodeVersion: 1.0.0
Type: CLI Tool
Interface: Command Line + JSON
CLI-VSCode 是 VSCode 的命令行接口,让 AI Agent 可以直接操作 VSCode。
支持功能:
确保 VSCode 已安装并且 code 命令行工具可用。
在 VSCode 中按 Cmd+Shift+P,输入 "Shell Command: Install 'code' command in PATH"
VSCode 安装时勾选 "Add to PATH"
sudo ln -s /usr/share/code/bin/code /usr/local/bin/code
# 打开文件
python cli-vscode.py open ./src/main.py
# 安装扩展
python cli-vscode.py install-extension --id esbenp.prettier-vscode
# 列出扩展
python cli-vscode.py list-extensions
# 添加到工作区
python cli-vscode.py add-folder ./tests
# 检查状态
python cli-vscode.py status
# JSON 输出 (Agent 使用)
python cli-vscode.py --json list-extensions
{
"extensions": [
"esbenp.prettier-vscode",
"ms-python.python",
"GitHub.copilot"
]
}
{
"installed": true,
"version": "1.88.0"
}
skill: cli-vscode
type: cli
commands:
- open
- install-extension
- list-extensions
- add-folder
- status
MIT License (个人使用)
商业许可需单独购买