Godot Plugin Skill
Control Godot 4.x Editor through 30 built-in tools. Supports 80+ node types.
First-Time Setup
If godot_execute tool is not available, install the gateway extension:
# From skill directory
./scripts/install-extension.sh
# Restart gateway
openclaw gateway restart
The extension files are in extension/ directory.
Quick Reference
Core Tools
| Category |
Key Tools |
| Scene |
scene.create, scene.getCurrent, scene.open, scene.save |
| Node |
node.find, node.create, node.delete, node.getData |
| Transform |
transform.setPosition, transform.setRotation, transform.setScale |
| Debug |
debug.tree, debug.screenshot, console.getLogs |
| Input |
input.keyPress, input.mouseClick, input.actionPress |
| Editor |
editor.play, editor.stop, editor.getState |
Common Workflows
1. Scene Creation
Use godot_execute tool:
godot_execute(tool="scene.create", parameters={rootType: "Node2D", name: "Level1"})
godot_execute(tool="node.create", parameters={type: "CharacterBody2D", name: "Player"})
godot_execute(tool="scene.save")
2. Find & Modify Nodes
godot_execute(tool="node.find", parameters={name: "Player"})
godot_execute(tool="node.getData", parameters={path: "Player"})
godot_execute(tool="transform.setPosition", parameters={path: "Player", x: 100, y: 200})
3. Game Testing with Input
godot_execute(tool="editor.play")
godot_execute(tool="input.keyPress", parameters={key: "W"})
godot_execute(tool="input.actionPress", parameters={action: "jump"})
godot_execute(tool="debug.screenshot")
godot_execute(tool="editor.stop")
4. Check Logs
godot_execute(tool="console.getLogs", parameters={limit: 50})
godot_execute(tool="console.getLogs", parameters={type: "error", limit: 20})
Tool Categories
Console (2 tools)
console.getLogs - Get logs from Godot log file {limit: 100, type: "error"|"warning"|""}
console.clear - Placeholder (logs can't be cleared programmatically)
Scene (5 tools)
scene.getCurrent - Get current scene info
scene.list - List all .tscn/.scn files
scene.open - Open scene by path
scene.save - Save current scene
scene.create - Create new scene {rootType: "Node2D"|"Node3D"|"Control", name: "SceneName"}
Node (6 tools)
node.find - Find by name, type, or group
node.create - Create node (80+ types: CSGBox3D, MeshInstance3D, ColorRect, etc.)
node.delete - Delete node by path
node.getData - Get node info, children, transform
node.getProperty - Get property value
node.setProperty - Set property value (Vector2/3 auto-converted)
Transform (3 tools)
transform.setPosition - Set position {x, y} or {x, y, z}
transform.setRotation - Set rotation (degrees)
transform.setScale - Set scale
Editor (4 tools)
editor.play - Play current or custom scene
editor.stop - Stop playing
editor.pause - Toggle pause
editor.getState - Get playing state, version, project name
Debug (3 tools)
debug.screenshot - Capture viewport
debug.tree - Get scene tree as text
debug.log - Print message
Input (7 tools) - For Game Testing
input.keyPress - Press and release key {key: "W"}
input.keyDown - Hold key down
input.keyUp - Release key
input.mouseClick - Click at position {x, y, button: "left"|"right"|"middle"}
input.mouseMove - Move mouse to position {x, y}
input.actionPress - Press input action {action: "jump"}
input.actionRelease - Release input action
Script (2 tools)
script.list - List .gd files
script.read - Read script content
Resource (1 tool)
resource.list - List files by extension
Supported Keys for Input
A-Z, 0-9, SPACE, ENTER, ESCAPE, TAB, BACKSPACE, DELETE
UP, DOWN, LEFT, RIGHT
SHIFT, CTRL, ALT
F1-F12
Node Types for Creation
| Type |
Description |
Node2D |
2D spatial |
Node3D |
3D spatial |
Sprite2D |
2D sprite |
CharacterBody2D |
2D character |
CharacterBody3D |
3D character |
RigidBody2D/3D |
Physics body |
Area2D/3D |
Trigger area |
Camera2D/3D |
Camera |
Label, Button |
UI elements |
Tips
Input Simulation
- Only works during Play mode
- Use
input.actionPress for mapped actions (from Input Map)
- Use
input.keyPress for direct key simulation
Finding Nodes
node.find {name: "Player"} # By name substring
node.find {type: "Sprite2D"} # By exact type
node.find {group: "enemies"} # By group
Vector Properties
node.setProperty auto-converts dictionaries to Vector2/Vector3:
{path: "Cam", property: "zoom", value: {x: 2, y: 2}} # → Vector2(2, 2)
Console Logs
console.getLogs {limit: 50} # Last 50 lines
console.getLogs {type: "error"} # Errors only
console.getLogs {type: "warning"} # Warnings only
🔐 Security: Model Invocation Setting
When publishing to ClawHub, you can configure disableModelInvocation:
| Setting |
AI Auto-Invoke |
User Explicit Request |
false (default) |
✅ Allowed |
✅ Allowed |
true |
❌ Blocked |
✅ Allowed |
Recommendation: true
Reason: During Godot development, it's useful for AI to autonomously perform supporting tasks like checking scene tree, taking screenshots, and inspecting nodes.
When to use true: For sensitive tools (payments, deletions, message sending, etc.)
1---
2name: godot-plugin
3description: Control Godot Editor via OpenClaw Godot Plugin. Use for Godot game development tasks including scene management, node manipulation, input simulation, debugging, and editor control. Triggers on Godot-related requests like inspecting scenes, creating nodes, taking screenshots, testing gameplay, or controlling the editor.
4metadata:
5 source: https://skillmd.com/skills/modbender/godot-plugin
6---
7
8# Godot Plugin Skill
9
10Control Godot 4.x Editor through 30 built-in tools. Supports 80+ node types.
11
12## First-Time Setup
13
14If `godot_execute` tool is not available, install the gateway extension:
15
16```bash
17# From skill directory
18./scripts/install-extension.sh
19
20# Restart gateway
21openclaw gateway restart
22```
23
24The extension files are in `extension/` directory.
25
26## Quick Reference
27
28### Core Tools
29
30| Category | Key Tools |
31|----------|-----------|
32| **Scene** | `scene.create`, `scene.getCurrent`, `scene.open`, `scene.save` |
33| **Node** | `node.find`, `node.create`, `node.delete`, `node.getData` |
34| **Transform** | `transform.setPosition`, `transform.setRotation`, `transform.setScale` |
35| **Debug** | `debug.tree`, `debug.screenshot`, `console.getLogs` |
36| **Input** | `input.keyPress`, `input.mouseClick`, `input.actionPress` |
37| **Editor** | `editor.play`, `editor.stop`, `editor.getState` |
38
39## Common Workflows
40
41### 1. Scene Creation
42
43Use `godot_execute` tool:
44- `godot_execute(tool="scene.create", parameters={rootType: "Node2D", name: "Level1"})`
45- `godot_execute(tool="node.create", parameters={type: "CharacterBody2D", name: "Player"})`
46- `godot_execute(tool="scene.save")`
47
48### 2. Find & Modify Nodes
49
50- `godot_execute(tool="node.find", parameters={name: "Player"})`
51- `godot_execute(tool="node.getData", parameters={path: "Player"})`
52- `godot_execute(tool="transform.setPosition", parameters={path: "Player", x: 100, y: 200})`
53
54### 3. Game Testing with Input
55
56- `godot_execute(tool="editor.play")`
57- `godot_execute(tool="input.keyPress", parameters={key: "W"})`
58- `godot_execute(tool="input.actionPress", parameters={action: "jump"})`
59- `godot_execute(tool="debug.screenshot")`
60- `godot_execute(tool="editor.stop")`
61
62### 4. Check Logs
63
64- `godot_execute(tool="console.getLogs", parameters={limit: 50})`
65- `godot_execute(tool="console.getLogs", parameters={type: "error", limit: 20})`
66
67## Tool Categories
68
69### Console (2 tools)
70- `console.getLogs` - Get logs from Godot log file {limit: 100, type: "error"|"warning"|""}
71- `console.clear` - Placeholder (logs can't be cleared programmatically)
72
73### Scene (5 tools)
74- `scene.getCurrent` - Get current scene info
75- `scene.list` - List all .tscn/.scn files
76- `scene.open` - Open scene by path
77- `scene.save` - Save current scene
78- `scene.create` - Create new scene {rootType: "Node2D"|"Node3D"|"Control", name: "SceneName"}
79
80### Node (6 tools)
81- `node.find` - Find by name, type, or group
82- `node.create` - Create node (80+ types: CSGBox3D, MeshInstance3D, ColorRect, etc.)
83- `node.delete` - Delete node by path
84- `node.getData` - Get node info, children, transform
85- `node.getProperty` - Get property value
86- `node.setProperty` - Set property value (Vector2/3 auto-converted)
87
88### Transform (3 tools)
89- `transform.setPosition` - Set position {x, y} or {x, y, z}
90- `transform.setRotation` - Set rotation (degrees)
91- `transform.setScale` - Set scale
92
93### Editor (4 tools)
94- `editor.play` - Play current or custom scene
95- `editor.stop` - Stop playing
96- `editor.pause` - Toggle pause
97- `editor.getState` - Get playing state, version, project name
98
99### Debug (3 tools)
100- `debug.screenshot` - Capture viewport
101- `debug.tree` - Get scene tree as text
102- `debug.log` - Print message
103
104### Input (7 tools) - For Game Testing
105- `input.keyPress` - Press and release key {key: "W"}
106- `input.keyDown` - Hold key down
107- `input.keyUp` - Release key
108- `input.mouseClick` - Click at position {x, y, button: "left"|"right"|"middle"}
109- `input.mouseMove` - Move mouse to position {x, y}
110- `input.actionPress` - Press input action {action: "jump"}
111- `input.actionRelease` - Release input action
112
113### Script (2 tools)
114- `script.list` - List .gd files
115- `script.read` - Read script content
116
117### Resource (1 tool)
118- `resource.list` - List files by extension
119
120## Supported Keys for Input
121
122```
123A-Z, 0-9, SPACE, ENTER, ESCAPE, TAB, BACKSPACE, DELETE
124UP, DOWN, LEFT, RIGHT
125SHIFT, CTRL, ALT
126F1-F12
127```
128
129## Node Types for Creation
130
131| Type | Description |
132|------|-------------|
133| `Node2D` | 2D spatial |
134| `Node3D` | 3D spatial |
135| `Sprite2D` | 2D sprite |
136| `CharacterBody2D` | 2D character |
137| `CharacterBody3D` | 3D character |
138| `RigidBody2D/3D` | Physics body |
139| `Area2D/3D` | Trigger area |
140| `Camera2D/3D` | Camera |
141| `Label`, `Button` | UI elements |
142
143## Tips
144
145### Input Simulation
146- Only works during **Play mode**
147- Use `input.actionPress` for mapped actions (from Input Map)
148- Use `input.keyPress` for direct key simulation
149
150### Finding Nodes
151```
152node.find {name: "Player"} # By name substring
153node.find {type: "Sprite2D"} # By exact type
154node.find {group: "enemies"} # By group
155```
156
157### Vector Properties
158`node.setProperty` auto-converts dictionaries to Vector2/Vector3:
159```
160{path: "Cam", property: "zoom", value: {x: 2, y: 2}} # → Vector2(2, 2)
161```
162
163### Console Logs
164```
165console.getLogs {limit: 50} # Last 50 lines
166console.getLogs {type: "error"} # Errors only
167console.getLogs {type: "warning"} # Warnings only
168```
169
170## 🔐 Security: Model Invocation Setting
171
172When publishing to ClawHub, you can configure `disableModelInvocation`:
173
174| Setting | AI Auto-Invoke | User Explicit Request |
175|---------|---------------|----------------------|
176| `false` (default) | ✅ Allowed | ✅ Allowed |
177| `true` | ❌ Blocked | ✅ Allowed |
178
179### Recommendation: **`true`**
180
181**Reason:** During Godot development, it's useful for AI to autonomously perform supporting tasks like checking scene tree, taking screenshots, and inspecting nodes.
182
183**When to use `true`:** For sensitive tools (payments, deletions, message sending, etc.)