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:
| Type |
invokeTimeoutMs |
timeoutMs |
| File/editor/lang |
15000 |
20000 |
| Git |
30000 |
35000 |
| Test |
60000 |
65000 |
| Agent plan/ask |
180000 |
185000 |
| Agent run |
300000 |
305000 |
Command Categories
| Category |
Prefix |
Key Commands |
Reference |
| File |
vscode.file.* |
read, write, edit, delete |
commands/file.md |
| Directory |
vscode.dir.* |
list |
commands/file.md |
| Language |
vscode.lang.* |
definition, references, hover, symbols, rename, codeActions, format |
commands/language.md |
| Editor |
vscode.editor.* |
active, openFiles, selections |
commands/editor.md |
| Diagnostics |
vscode.diagnostics.* |
get |
commands/editor.md |
| Git |
vscode.git.* |
status, diff, log, blame, stage, commit, stash |
commands/git.md |
| Test |
vscode.test.* |
list, run, results |
commands/test-debug.md |
| Debug |
vscode.debug.* |
launch, stop, breakpoint, evaluate, stackTrace, variables |
commands/test-debug.md |
| Terminal |
vscode.terminal.* |
run (disabled by default) |
commands/terminal.md |
| Agent |
vscode.agent.* |
status, run, setup (Cursor only) |
commands/agent.md |
| Workspace |
vscode.workspace.* |
info |
commands/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
| Error |
Cause |
Solution |
node command not allowed |
Not in Gateway whitelist |
Add to gateway.nodes.allowCommands |
node not found |
Extension not connected |
Check extension status bar |
timeout |
Operation too long |
Increase both timeout params |
path traversal blocked |
Path outside workspace |
Use relative paths only |
read-only mode |
Extension in read-only |
Disable 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---
2name: vscode-node
3description: Operate on code through a VS Code/Cursor IDE connected as an OpenClaw Node. Provides 40+ commands for file operations, language intelligence, git, testing, debugging, and Cursor Agent CLI integration. Use when you need to read/write/edit code, navigate definitions/references, run tests, debug, or delegate coding tasks to Cursor Agent.
4metadata:
5 source: https://skillmd.com/skills/modbender/vscode-node
6 openclaw:
7 requires:
8 tools:
9 - nodes
10---
11
12# VS Code / Cursor Node Skill
13
14Control a VS Code or Cursor IDE remotely through the OpenClaw Node protocol.
15
16## Related
17
18- **[OpenClaw Node for VS Code](https://marketplace.visualstudio.com/items?itemName=xiaoyaner.openclaw-node-vscode)** — The VS Code/Cursor extension you need to install (required)
19- **[cursor-ide-agent](https://clawhub.ai/xiaoyaner0201/cursor-ide-agent)** — Combined skill with both CLI and Node paths (install this instead if you also use Cursor CLI)
20- **Source**: [github.com/xiaoyaner-home/openclaw-vscode](https://github.com/xiaoyaner-home/openclaw-vscode)
21
22## Prerequisites
23
24- Extension `openclaw-node-vscode` installed and connected (status bar 🟢)
25- Node visible in `nodes status`
26- Commands in Gateway's `allowCommands` whitelist
27
28## Invocation Pattern
29
30```
31nodes invoke --node "<name>" --invokeCommand "<cmd>" --invokeParamsJson '{"key":"val"}'
32```
33
34Both `invokeTimeoutMs` (Gateway internal) and `timeoutMs` (HTTP layer, must be larger) are required for long operations.
35
36**Timeout guide:**
37
38| Type | invokeTimeoutMs | timeoutMs |
39|------|----------------|-----------|
40| File/editor/lang | 15000 | 20000 |
41| Git | 30000 | 35000 |
42| Test | 60000 | 65000 |
43| Agent plan/ask | 180000 | 185000 |
44| Agent run | 300000 | 305000 |
45
46## Command Categories
47
48| Category | Prefix | Key Commands | Reference |
49|----------|--------|-------------|-----------|
50| **File** | `vscode.file.*` | read, write, edit, delete | [commands/file.md](references/commands/file.md) |
51| **Directory** | `vscode.dir.*` | list | [commands/file.md](references/commands/file.md) |
52| **Language** | `vscode.lang.*` | definition, references, hover, symbols, rename, codeActions, format | [commands/language.md](references/commands/language.md) |
53| **Editor** | `vscode.editor.*` | active, openFiles, selections | [commands/editor.md](references/commands/editor.md) |
54| **Diagnostics** | `vscode.diagnostics.*` | get | [commands/editor.md](references/commands/editor.md) |
55| **Git** | `vscode.git.*` | status, diff, log, blame, stage, commit, stash | [commands/git.md](references/commands/git.md) |
56| **Test** | `vscode.test.*` | list, run, results | [commands/test-debug.md](references/commands/test-debug.md) |
57| **Debug** | `vscode.debug.*` | launch, stop, breakpoint, evaluate, stackTrace, variables | [commands/test-debug.md](references/commands/test-debug.md) |
58| **Terminal** | `vscode.terminal.*` | run (disabled by default) | [commands/terminal.md](references/commands/terminal.md) |
59| **Agent** | `vscode.agent.*` | status, run, setup (Cursor only) | [commands/agent.md](references/commands/agent.md) |
60| **Workspace** | `vscode.workspace.*` | info | [commands/editor.md](references/commands/editor.md) |
61
62## Quick Examples
63
64### Read a file
65```
66nodes invoke --node "my-vscode" --invokeCommand "vscode.file.read" --invokeParamsJson '{"path":"src/main.ts"}'
67→ { content, totalLines, language }
68```
69
70### Find all references
71```
72nodes invoke --node "my-vscode" --invokeCommand "vscode.lang.references" --invokeParamsJson '{"path":"src/main.ts","line":10,"character":5}'
73→ { locations: [{ path, line, character }] }
74```
75
76### Git status + commit
77```
78nodes invoke --node "my-vscode" --invokeCommand "vscode.git.status"
79→ { branch, staged, modified, untracked, ahead, behind }
80
81nodes invoke --node "my-vscode" --invokeCommand "vscode.git.stage" --invokeParamsJson '{"paths":["src/main.ts"]}'
82nodes invoke --node "my-vscode" --invokeCommand "vscode.git.commit" --invokeParamsJson '{"message":"fix: resolve type error"}'
83```
84
85### Delegate to Cursor Agent
86```
87nodes invoke --node "my-vscode" --invokeCommand "vscode.agent.run" --invokeParamsJson '{"prompt":"Add error handling to all API endpoints","mode":"plan"}' --invokeTimeoutMs 180000 --timeoutMs 185000
88→ { output, exitCode }
89```
90
91## Common Workflows
92
93See [references/workflows.md](references/workflows.md) for detailed step-by-step workflows:
94- Fix a type error
95- Safe cross-file refactor
96- Delegate complex task to Cursor Agent
97
98## Error Handling
99
100| Error | Cause | Solution |
101|-------|-------|----------|
102| `node command not allowed` | Not in Gateway whitelist | Add to `gateway.nodes.allowCommands` |
103| `node not found` | Extension not connected | Check extension status bar |
104| `timeout` | Operation too long | Increase both timeout params |
105| `path traversal blocked` | Path outside workspace | Use relative paths only |
106| `read-only mode` | Extension in read-only | Disable `openclaw.readOnly` setting |
107
108## Security
109
110- All paths are **relative to workspace root** — absolute paths and `../` blocked
111- Writes respect `readOnly` and `confirmWrites` extension settings
112- Terminal disabled by default, whitelist-only when enabled
113- Each device has unique Ed25519 identity, must be approved by Gateway