← 返回
开发者工具

VS Code Node

Operate on code through a VS Code/Cursor IDE connected as an OpenClaw Node. Provides 40+ commands for file operations, language intelligence, git, testing, d...
通过作为 OpenClaw 节点连接的 VS Code/Cursor IDE 操作代码,提供 40 多种命令,涵盖文件操作、语言智能、Git、测试等功能。
xiaoyaner0201
开发者工具 clawhub v1.0.2 1 版本 99820.3 Key: 无需
★ 2
Stars
📥 1,626
下载
💾 176
安装
1
版本
#latest

概述

VS Code / Cursor Node Skill

Control a VS Code or Cursor IDE remotely through the OpenClaw Node protocol.

Related

Prerequisites

  • Extension openclaw-node-vscode installed and connected (status bar 🟢)
  • Node visible in nodes status
  • Commands in Gateway's allowCommands whitelist

Invocation Pattern

nodes invoke --node "<name>" --invokeCommand "<cmd>" --invokeParamsJson '{"key":"val"}'

Both invokeTimeoutMs (Gateway internal) and timeoutMs (HTTP layer, must be larger) are required for long operations.

Timeout guide:

TypeinvokeTimeoutMstimeoutMs
---------------------------------
File/editor/lang1500020000
Git3000035000
Test6000065000
Agent plan/ask180000185000
Agent run300000305000

Command Categories

CategoryPrefixKey CommandsReference
------------------------------------------
Filevscode.file.*read, write, edit, deletecommands/file.md
Directoryvscode.dir.*listcommands/file.md
Languagevscode.lang.*definition, references, hover, symbols, rename, codeActions, formatcommands/language.md
Editorvscode.editor.*active, openFiles, selectionscommands/editor.md
Diagnosticsvscode.diagnostics.*getcommands/editor.md
Gitvscode.git.*status, diff, log, blame, stage, commit, stashcommands/git.md
Testvscode.test.*list, run, resultscommands/test-debug.md
Debugvscode.debug.*launch, stop, breakpoint, evaluate, stackTrace, variablescommands/test-debug.md
Terminalvscode.terminal.*run (disabled by default)commands/terminal.md
Agentvscode.agent.*status, run, setup (Cursor only)commands/agent.md
Workspacevscode.workspace.*infocommands/editor.md

Quick Examples

Read a file

nodes invoke --node "my-vscode" --invokeCommand "vscode.file.read" --invokeParamsJson '{"path":"src/main.ts"}'
→ { content, totalLines, language }

Find all references

nodes invoke --node "my-vscode" --invokeCommand "vscode.lang.references" --invokeParamsJson '{"path":"src/main.ts","line":10,"character":5}'
→ { locations: [{ path, line, character }] }

Git status + commit

nodes invoke --node "my-vscode" --invokeCommand "vscode.git.status"
→ { branch, staged, modified, untracked, ahead, behind }

nodes invoke --node "my-vscode" --invokeCommand "vscode.git.stage" --invokeParamsJson '{"paths":["src/main.ts"]}'
nodes invoke --node "my-vscode" --invokeCommand "vscode.git.commit" --invokeParamsJson '{"message":"fix: resolve type error"}'

Delegate to Cursor Agent

nodes invoke --node "my-vscode" --invokeCommand "vscode.agent.run" --invokeParamsJson '{"prompt":"Add error handling to all API endpoints","mode":"plan"}' --invokeTimeoutMs 180000 --timeoutMs 185000
→ { output, exitCode }

Common Workflows

See references/workflows.md for detailed step-by-step workflows:

  • Fix a type error
  • Safe cross-file refactor
  • Delegate complex task to Cursor Agent

Error Handling

ErrorCauseSolution
------------------------
node command not allowedNot in Gateway whitelistAdd to gateway.nodes.allowCommands
node not foundExtension not connectedCheck extension status bar
timeoutOperation too longIncrease both timeout params
path traversal blockedPath outside workspaceUse relative paths only
read-only modeExtension in read-onlyDisable openclaw.readOnly setting

Security

  • All paths are relative to workspace root — absolute paths and ../ blocked
  • Writes respect readOnly and confirmWrites extension settings
  • Terminal disabled by default, whitelist-only when enabled
  • Each device has unique Ed25519 identity, must be approved by Gateway

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-29 03:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,816
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 670 📥 324,310
productivity

Windows Remote

xiaoyaner0201
Control remote Windows machines via SSH. Use when executing commands on Windows, checking GPU status (nvidia-smi), runni
★ 0 📥 3,186