unreal-engine-mcp-server 0.3.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.production +1 -1
- package/.github/copilot-instructions.md +45 -0
- package/.github/workflows/publish-mcp.yml +1 -1
- package/README.md +22 -7
- package/dist/index.js +137 -46
- package/dist/prompts/index.d.ts +10 -3
- package/dist/prompts/index.js +186 -7
- package/dist/resources/actors.d.ts +19 -1
- package/dist/resources/actors.js +55 -64
- package/dist/resources/assets.d.ts +3 -2
- package/dist/resources/assets.js +117 -109
- package/dist/resources/levels.d.ts +21 -3
- package/dist/resources/levels.js +31 -56
- package/dist/tools/actors.d.ts +3 -14
- package/dist/tools/actors.js +246 -302
- package/dist/tools/animation.d.ts +57 -102
- package/dist/tools/animation.js +429 -450
- package/dist/tools/assets.d.ts +13 -2
- package/dist/tools/assets.js +58 -46
- package/dist/tools/audio.d.ts +22 -13
- package/dist/tools/audio.js +467 -121
- package/dist/tools/blueprint.d.ts +32 -13
- package/dist/tools/blueprint.js +699 -448
- package/dist/tools/build_environment_advanced.d.ts +0 -1
- package/dist/tools/build_environment_advanced.js +236 -87
- package/dist/tools/consolidated-tool-definitions.d.ts +232 -15
- package/dist/tools/consolidated-tool-definitions.js +124 -255
- package/dist/tools/consolidated-tool-handlers.js +749 -766
- package/dist/tools/debug.d.ts +72 -10
- package/dist/tools/debug.js +170 -36
- package/dist/tools/editor.d.ts +9 -2
- package/dist/tools/editor.js +30 -44
- package/dist/tools/foliage.d.ts +34 -15
- package/dist/tools/foliage.js +97 -107
- package/dist/tools/introspection.js +19 -21
- package/dist/tools/landscape.d.ts +1 -2
- package/dist/tools/landscape.js +311 -168
- package/dist/tools/level.d.ts +3 -28
- package/dist/tools/level.js +642 -192
- package/dist/tools/lighting.d.ts +14 -3
- package/dist/tools/lighting.js +236 -123
- package/dist/tools/materials.d.ts +25 -7
- package/dist/tools/materials.js +102 -79
- package/dist/tools/niagara.d.ts +10 -12
- package/dist/tools/niagara.js +74 -94
- package/dist/tools/performance.d.ts +12 -4
- package/dist/tools/performance.js +38 -79
- package/dist/tools/physics.d.ts +34 -10
- package/dist/tools/physics.js +364 -292
- package/dist/tools/rc.js +98 -24
- package/dist/tools/sequence.d.ts +1 -0
- package/dist/tools/sequence.js +146 -24
- package/dist/tools/ui.d.ts +31 -4
- package/dist/tools/ui.js +83 -66
- package/dist/tools/visual.d.ts +11 -0
- package/dist/tools/visual.js +245 -30
- package/dist/types/tool-types.d.ts +0 -6
- package/dist/types/tool-types.js +1 -8
- package/dist/unreal-bridge.d.ts +32 -2
- package/dist/unreal-bridge.js +621 -127
- package/dist/utils/elicitation.d.ts +57 -0
- package/dist/utils/elicitation.js +104 -0
- package/dist/utils/error-handler.d.ts +0 -33
- package/dist/utils/error-handler.js +4 -111
- package/dist/utils/http.d.ts +2 -22
- package/dist/utils/http.js +12 -75
- package/dist/utils/normalize.d.ts +4 -4
- package/dist/utils/normalize.js +15 -7
- package/dist/utils/python-output.d.ts +18 -0
- package/dist/utils/python-output.js +290 -0
- package/dist/utils/python.d.ts +2 -0
- package/dist/utils/python.js +4 -0
- package/dist/utils/response-validator.d.ts +6 -1
- package/dist/utils/response-validator.js +66 -13
- package/dist/utils/result-helpers.d.ts +27 -0
- package/dist/utils/result-helpers.js +147 -0
- package/dist/utils/safe-json.d.ts +0 -2
- package/dist/utils/safe-json.js +0 -43
- package/dist/utils/validation.d.ts +16 -0
- package/dist/utils/validation.js +70 -7
- package/mcp-config-example.json +2 -2
- package/package.json +11 -10
- package/server.json +37 -14
- package/src/index.ts +146 -50
- package/src/prompts/index.ts +211 -13
- package/src/resources/actors.ts +59 -44
- package/src/resources/assets.ts +123 -102
- package/src/resources/levels.ts +37 -47
- package/src/tools/actors.ts +269 -313
- package/src/tools/animation.ts +556 -539
- package/src/tools/assets.ts +59 -45
- package/src/tools/audio.ts +507 -113
- package/src/tools/blueprint.ts +778 -462
- package/src/tools/build_environment_advanced.ts +312 -106
- package/src/tools/consolidated-tool-definitions.ts +136 -267
- package/src/tools/consolidated-tool-handlers.ts +871 -795
- package/src/tools/debug.ts +179 -38
- package/src/tools/editor.ts +35 -37
- package/src/tools/foliage.ts +110 -104
- package/src/tools/introspection.ts +24 -22
- package/src/tools/landscape.ts +334 -181
- package/src/tools/level.ts +683 -182
- package/src/tools/lighting.ts +244 -123
- package/src/tools/materials.ts +114 -83
- package/src/tools/niagara.ts +87 -81
- package/src/tools/performance.ts +49 -88
- package/src/tools/physics.ts +393 -299
- package/src/tools/rc.ts +103 -25
- package/src/tools/sequence.ts +157 -30
- package/src/tools/ui.ts +101 -70
- package/src/tools/visual.ts +250 -29
- package/src/types/tool-types.ts +0 -9
- package/src/unreal-bridge.ts +658 -140
- package/src/utils/elicitation.ts +129 -0
- package/src/utils/error-handler.ts +4 -159
- package/src/utils/http.ts +16 -115
- package/src/utils/normalize.ts +20 -10
- package/src/utils/python-output.ts +351 -0
- package/src/utils/python.ts +3 -0
- package/src/utils/response-validator.ts +68 -17
- package/src/utils/result-helpers.ts +193 -0
- package/src/utils/safe-json.ts +0 -50
- package/src/utils/validation.ts +94 -7
- package/tests/run-unreal-tool-tests.mjs +720 -0
- package/tsconfig.json +2 -2
- package/dist/python-utils.d.ts +0 -29
- package/dist/python-utils.js +0 -54
- package/dist/tools/tool-definitions.d.ts +0 -4919
- package/dist/tools/tool-definitions.js +0 -1065
- package/dist/tools/tool-handlers.d.ts +0 -47
- package/dist/tools/tool-handlers.js +0 -863
- package/dist/types/index.d.ts +0 -323
- package/dist/types/index.js +0 -28
- package/dist/utils/cache-manager.d.ts +0 -64
- package/dist/utils/cache-manager.js +0 -176
- package/dist/utils/errors.d.ts +0 -133
- package/dist/utils/errors.js +0 -256
- package/src/python/editor_compat.py +0 -181
- package/src/python-utils.ts +0 -57
- package/src/tools/tool-definitions.ts +0 -1081
- package/src/tools/tool-handlers.ts +0 -973
- package/src/types/index.ts +0 -414
- package/src/utils/cache-manager.ts +0 -213
- package/src/utils/errors.ts +0 -312
|
@@ -1,1065 +0,0 @@
|
|
|
1
|
-
// Tool definitions for all 16 MCP tools
|
|
2
|
-
export const toolDefinitions = [
|
|
3
|
-
// Asset Tools
|
|
4
|
-
{
|
|
5
|
-
name: 'list_assets',
|
|
6
|
-
description: `List assets in a folder of the project.
|
|
7
|
-
|
|
8
|
-
When to use:
|
|
9
|
-
- Browse project content (use /Game; /Content is auto-mapped by the server).
|
|
10
|
-
- Get a quick inventory of assets in a subfolder to refine subsequent actions.
|
|
11
|
-
|
|
12
|
-
Notes:
|
|
13
|
-
- For /Game, the server may limit results for performance; prefer subfolders (e.g., /Game/ThirdPerson).
|
|
14
|
-
- Returns a structured list with Name/Path/Class/PackagePath when available.
|
|
15
|
-
|
|
16
|
-
Example:
|
|
17
|
-
- {"directory":"/Game/ThirdPerson","recursive":false}`,
|
|
18
|
-
inputSchema: {
|
|
19
|
-
type: 'object',
|
|
20
|
-
properties: {
|
|
21
|
-
directory: { type: 'string', description: 'Directory path (e.g. /Game/Assets)' },
|
|
22
|
-
recursive: { type: 'boolean', description: 'List recursively' }
|
|
23
|
-
},
|
|
24
|
-
required: ['directory']
|
|
25
|
-
},
|
|
26
|
-
outputSchema: {
|
|
27
|
-
type: 'object',
|
|
28
|
-
properties: {
|
|
29
|
-
assets: {
|
|
30
|
-
type: 'array',
|
|
31
|
-
items: {
|
|
32
|
-
type: 'object',
|
|
33
|
-
properties: {
|
|
34
|
-
Name: { type: 'string' },
|
|
35
|
-
Path: { type: 'string' },
|
|
36
|
-
Class: { type: 'string' },
|
|
37
|
-
PackagePath: { type: 'string' }
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
error: { type: 'string' },
|
|
42
|
-
note: { type: 'string' }
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
name: 'import_asset',
|
|
48
|
-
description: `Import a file from disk into the project (e.g., FBX, PNG, WAV, EXR).
|
|
49
|
-
|
|
50
|
-
When to use:
|
|
51
|
-
- Bring external content into /Game at a specific destination path.
|
|
52
|
-
|
|
53
|
-
Notes:
|
|
54
|
-
- destinationPath is a package path like /Game/Environment/Trees.
|
|
55
|
-
- Keep file names simple (avoid spaces and special characters).
|
|
56
|
-
|
|
57
|
-
Example:
|
|
58
|
-
- {"sourcePath":"C:/Temp/Tree.fbx","destinationPath":"/Game/Environment/Trees"}`,
|
|
59
|
-
inputSchema: {
|
|
60
|
-
type: 'object',
|
|
61
|
-
properties: {
|
|
62
|
-
sourcePath: { type: 'string', description: 'File system path to import from' },
|
|
63
|
-
destinationPath: { type: 'string', description: 'Project path to import to' }
|
|
64
|
-
},
|
|
65
|
-
required: ['sourcePath', 'destinationPath']
|
|
66
|
-
},
|
|
67
|
-
outputSchema: {
|
|
68
|
-
type: 'object',
|
|
69
|
-
properties: {
|
|
70
|
-
success: { type: 'boolean' },
|
|
71
|
-
paths: { type: 'array', items: { type: 'string' } },
|
|
72
|
-
message: { type: 'string' },
|
|
73
|
-
error: { type: 'string' }
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
// Actor Tools
|
|
78
|
-
{
|
|
79
|
-
name: 'spawn_actor',
|
|
80
|
-
description: `Spawn a new actor in the current level.
|
|
81
|
-
|
|
82
|
-
When to use:
|
|
83
|
-
- Place a class (e.g., StaticMeshActor, CameraActor) or spawn from an asset path (e.g., /Engine/BasicShapes/Cube).
|
|
84
|
-
|
|
85
|
-
Notes:
|
|
86
|
-
- If an asset path is provided, a StaticMeshActor is auto-spawned with the mesh set.
|
|
87
|
-
- location/rotation are optional; defaults are used if omitted.
|
|
88
|
-
|
|
89
|
-
Example:
|
|
90
|
-
- {"classPath":"/Engine/BasicShapes/Cube","location":{"x":0,"y":0,"z":100}}`,
|
|
91
|
-
inputSchema: {
|
|
92
|
-
type: 'object',
|
|
93
|
-
properties: {
|
|
94
|
-
classPath: { type: 'string', description: 'Blueprint/class path' },
|
|
95
|
-
location: {
|
|
96
|
-
type: 'object',
|
|
97
|
-
properties: {
|
|
98
|
-
x: { type: 'number' },
|
|
99
|
-
y: { type: 'number' },
|
|
100
|
-
z: { type: 'number' }
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
rotation: {
|
|
104
|
-
type: 'object',
|
|
105
|
-
properties: {
|
|
106
|
-
pitch: { type: 'number' },
|
|
107
|
-
yaw: { type: 'number' },
|
|
108
|
-
roll: { type: 'number' }
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
required: ['classPath']
|
|
113
|
-
},
|
|
114
|
-
outputSchema: {
|
|
115
|
-
type: 'object',
|
|
116
|
-
properties: {
|
|
117
|
-
success: { type: 'boolean' },
|
|
118
|
-
actor: { type: 'string' },
|
|
119
|
-
error: { type: 'string' }
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: 'delete_actor',
|
|
125
|
-
description: `Delete one or more actors by name/label.
|
|
126
|
-
|
|
127
|
-
When to use:
|
|
128
|
-
- Remove actors matching a label/name (case-insensitive).
|
|
129
|
-
|
|
130
|
-
Example:
|
|
131
|
-
- {"actorName":"Cube_1"}`,
|
|
132
|
-
inputSchema: {
|
|
133
|
-
type: 'object',
|
|
134
|
-
properties: {
|
|
135
|
-
actorName: { type: 'string', description: 'Name of the actor to delete' }
|
|
136
|
-
},
|
|
137
|
-
required: ['actorName']
|
|
138
|
-
},
|
|
139
|
-
outputSchema: {
|
|
140
|
-
type: 'object',
|
|
141
|
-
properties: {
|
|
142
|
-
success: { type: 'boolean' },
|
|
143
|
-
deleted: { type: 'string' },
|
|
144
|
-
error: { type: 'string' }
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
// Material Tools
|
|
149
|
-
{
|
|
150
|
-
name: 'create_material',
|
|
151
|
-
description: `Create a simple Material asset at a path.
|
|
152
|
-
|
|
153
|
-
When to use:
|
|
154
|
-
- Quickly scaffold a basic material you can edit later.
|
|
155
|
-
|
|
156
|
-
Example:
|
|
157
|
-
- {"name":"M_Mask","path":"/Game/Materials"}`,
|
|
158
|
-
inputSchema: {
|
|
159
|
-
type: 'object',
|
|
160
|
-
properties: {
|
|
161
|
-
name: { type: 'string', description: 'Material name' },
|
|
162
|
-
path: { type: 'string', description: 'Path to create material' }
|
|
163
|
-
},
|
|
164
|
-
required: ['name', 'path']
|
|
165
|
-
},
|
|
166
|
-
outputSchema: {
|
|
167
|
-
type: 'object',
|
|
168
|
-
properties: {
|
|
169
|
-
success: { type: 'boolean' },
|
|
170
|
-
materialPath: { type: 'string' },
|
|
171
|
-
message: { type: 'string' },
|
|
172
|
-
error: { type: 'string' }
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
name: 'apply_material_to_actor',
|
|
178
|
-
description: `Assign a material to an actor's mesh component.
|
|
179
|
-
|
|
180
|
-
When to use:
|
|
181
|
-
- Swap an actor's material by path; slotIndex defaults to 0.
|
|
182
|
-
|
|
183
|
-
Example:
|
|
184
|
-
- {"actorPath":"/Game/LevelActors/Cube_1","materialPath":"/Game/Materials/M_Mask","slotIndex":0}`,
|
|
185
|
-
inputSchema: {
|
|
186
|
-
type: 'object',
|
|
187
|
-
properties: {
|
|
188
|
-
actorPath: { type: 'string', description: 'Path to the actor' },
|
|
189
|
-
materialPath: { type: 'string', description: 'Path to the material asset' },
|
|
190
|
-
slotIndex: { type: 'number', description: 'Material slot index (default: 0)' }
|
|
191
|
-
},
|
|
192
|
-
required: ['actorPath', 'materialPath']
|
|
193
|
-
},
|
|
194
|
-
outputSchema: {
|
|
195
|
-
type: 'object',
|
|
196
|
-
properties: {
|
|
197
|
-
success: { type: 'boolean' },
|
|
198
|
-
message: { type: 'string' }
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
// Editor Tools
|
|
203
|
-
{
|
|
204
|
-
name: 'play_in_editor',
|
|
205
|
-
description: `Start a Play-In-Editor (PIE) session.
|
|
206
|
-
|
|
207
|
-
When to use:
|
|
208
|
-
- Begin simulating the level in the editor.`,
|
|
209
|
-
inputSchema: {
|
|
210
|
-
type: 'object',
|
|
211
|
-
properties: {}
|
|
212
|
-
},
|
|
213
|
-
outputSchema: {
|
|
214
|
-
type: 'object',
|
|
215
|
-
properties: {
|
|
216
|
-
success: { type: 'boolean' },
|
|
217
|
-
playing: { type: 'boolean' },
|
|
218
|
-
message: { type: 'string' }
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
name: 'stop_play_in_editor',
|
|
224
|
-
description: `Stop the active PIE session.
|
|
225
|
-
|
|
226
|
-
When to use:
|
|
227
|
-
- End simulation and return to the editor.`,
|
|
228
|
-
inputSchema: {
|
|
229
|
-
type: 'object',
|
|
230
|
-
properties: {}
|
|
231
|
-
},
|
|
232
|
-
outputSchema: {
|
|
233
|
-
type: 'object',
|
|
234
|
-
properties: {
|
|
235
|
-
success: { type: 'boolean' },
|
|
236
|
-
playing: { type: 'boolean' },
|
|
237
|
-
message: { type: 'string' }
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
name: 'set_camera',
|
|
243
|
-
description: `Reposition the editor viewport camera.
|
|
244
|
-
|
|
245
|
-
When to use:
|
|
246
|
-
- Move/aim the camera in the editor for framing.
|
|
247
|
-
|
|
248
|
-
Notes:
|
|
249
|
-
- Accepts object or array formats; values are normalized.
|
|
250
|
-
|
|
251
|
-
Example:
|
|
252
|
-
- {"location":{"x":0,"y":-600,"z":250},"rotation":{"pitch":0,"yaw":0,"roll":0}}`,
|
|
253
|
-
inputSchema: {
|
|
254
|
-
type: 'object',
|
|
255
|
-
properties: {
|
|
256
|
-
location: {
|
|
257
|
-
type: 'object',
|
|
258
|
-
properties: {
|
|
259
|
-
x: { type: 'number' },
|
|
260
|
-
y: { type: 'number' },
|
|
261
|
-
z: { type: 'number' }
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
rotation: {
|
|
265
|
-
type: 'object',
|
|
266
|
-
properties: {
|
|
267
|
-
pitch: { type: 'number' },
|
|
268
|
-
yaw: { type: 'number' },
|
|
269
|
-
roll: { type: 'number' }
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
required: ['location']
|
|
274
|
-
},
|
|
275
|
-
outputSchema: {
|
|
276
|
-
type: 'object',
|
|
277
|
-
properties: {
|
|
278
|
-
success: { type: 'boolean' },
|
|
279
|
-
location: { type: 'array', items: { type: 'number' } },
|
|
280
|
-
rotation: { type: 'array', items: { type: 'number' } }
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
// Animation Tools
|
|
285
|
-
{
|
|
286
|
-
name: 'create_animation_blueprint',
|
|
287
|
-
description: `Create an Animation Blueprint for a skeleton.
|
|
288
|
-
|
|
289
|
-
When to use:
|
|
290
|
-
- Generate a starter Anim BP for a given skeleton.
|
|
291
|
-
|
|
292
|
-
Example:
|
|
293
|
-
- {"name":"ABP_Hero","skeletonPath":"/Game/Characters/Hero/SK_Hero_Skeleton","savePath":"/Game/Characters/Hero"}`,
|
|
294
|
-
inputSchema: {
|
|
295
|
-
type: 'object',
|
|
296
|
-
properties: {
|
|
297
|
-
name: { type: 'string', description: 'Animation blueprint name' },
|
|
298
|
-
skeletonPath: { type: 'string', description: 'Path to skeleton' },
|
|
299
|
-
savePath: { type: 'string', description: 'Save location' }
|
|
300
|
-
},
|
|
301
|
-
required: ['name', 'skeletonPath']
|
|
302
|
-
},
|
|
303
|
-
outputSchema: {
|
|
304
|
-
type: 'object',
|
|
305
|
-
properties: {
|
|
306
|
-
success: { type: 'boolean' },
|
|
307
|
-
blueprintPath: { type: 'string' },
|
|
308
|
-
message: { type: 'string' }
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
name: 'play_animation_montage',
|
|
314
|
-
description: `Play a Montage/Animation on an actor.
|
|
315
|
-
|
|
316
|
-
When to use:
|
|
317
|
-
- Trigger a montage on a possessed or editor actor.
|
|
318
|
-
|
|
319
|
-
Example:
|
|
320
|
-
- {"actorName":"Hero","montagePath":"/Game/Anim/MT_Attack","playRate":1.0}`,
|
|
321
|
-
inputSchema: {
|
|
322
|
-
type: 'object',
|
|
323
|
-
properties: {
|
|
324
|
-
actorName: { type: 'string', description: 'Actor name' },
|
|
325
|
-
montagePath: { type: 'string', description: 'Path to montage' },
|
|
326
|
-
playRate: { type: 'number', description: 'Playback rate' }
|
|
327
|
-
},
|
|
328
|
-
required: ['actorName', 'montagePath']
|
|
329
|
-
},
|
|
330
|
-
outputSchema: {
|
|
331
|
-
type: 'object',
|
|
332
|
-
properties: {
|
|
333
|
-
success: { type: 'boolean' },
|
|
334
|
-
playing: { type: 'boolean' },
|
|
335
|
-
message: { type: 'string' }
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
// Physics Tools
|
|
340
|
-
{
|
|
341
|
-
name: 'setup_ragdoll',
|
|
342
|
-
description: `Enable simple ragdoll using a physics asset.
|
|
343
|
-
|
|
344
|
-
When to use:
|
|
345
|
-
- Toggle ragdoll behavior on a character skeleton.
|
|
346
|
-
|
|
347
|
-
Example:
|
|
348
|
-
- {"skeletonPath":"/Game/Characters/Hero/SK_Hero_Skeleton","physicsAssetName":"PHYS_Hero","blendWeight":1.0}`,
|
|
349
|
-
inputSchema: {
|
|
350
|
-
type: 'object',
|
|
351
|
-
properties: {
|
|
352
|
-
skeletonPath: { type: 'string', description: 'Path to skeleton' },
|
|
353
|
-
physicsAssetName: { type: 'string', description: 'Physics asset name' },
|
|
354
|
-
blendWeight: { type: 'number', description: 'Blend weight (0-1)' }
|
|
355
|
-
},
|
|
356
|
-
required: ['skeletonPath', 'physicsAssetName']
|
|
357
|
-
},
|
|
358
|
-
outputSchema: {
|
|
359
|
-
type: 'object',
|
|
360
|
-
properties: {
|
|
361
|
-
success: { type: 'boolean' },
|
|
362
|
-
ragdollActive: { type: 'boolean' },
|
|
363
|
-
message: { type: 'string' }
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
name: 'apply_force',
|
|
369
|
-
description: `Apply a world-space force vector to an actor with physics enabled.
|
|
370
|
-
|
|
371
|
-
Example:
|
|
372
|
-
- {"actorName":"PhysicsBox","force":{"x":0,"y":0,"z":5000}}`,
|
|
373
|
-
inputSchema: {
|
|
374
|
-
type: 'object',
|
|
375
|
-
properties: {
|
|
376
|
-
actorName: { type: 'string', description: 'Actor name' },
|
|
377
|
-
force: {
|
|
378
|
-
type: 'object',
|
|
379
|
-
properties: {
|
|
380
|
-
x: { type: 'number' },
|
|
381
|
-
y: { type: 'number' },
|
|
382
|
-
z: { type: 'number' }
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
required: ['actorName', 'force']
|
|
387
|
-
},
|
|
388
|
-
outputSchema: {
|
|
389
|
-
type: 'object',
|
|
390
|
-
properties: {
|
|
391
|
-
success: { type: 'boolean' },
|
|
392
|
-
physicsEnabled: { type: 'boolean' },
|
|
393
|
-
message: { type: 'string' },
|
|
394
|
-
error: { type: 'string' }
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
// Niagara Tools
|
|
399
|
-
{
|
|
400
|
-
name: 'create_particle_effect',
|
|
401
|
-
description: `Create a simple particle/FX by tag.
|
|
402
|
-
|
|
403
|
-
When to use:
|
|
404
|
-
- Quickly drop a generic Fire/Smoke/Water effect for previews.
|
|
405
|
-
|
|
406
|
-
Example:
|
|
407
|
-
- {"effectType":"Smoke","name":"SMK1","location":{"x":100,"y":0,"z":50}}`,
|
|
408
|
-
inputSchema: {
|
|
409
|
-
type: 'object',
|
|
410
|
-
properties: {
|
|
411
|
-
effectType: { type: 'string', description: 'Effect type (Fire, Smoke, Water, etc.)' },
|
|
412
|
-
name: { type: 'string', description: 'Effect name' },
|
|
413
|
-
location: {
|
|
414
|
-
type: 'object',
|
|
415
|
-
properties: {
|
|
416
|
-
x: { type: 'number' },
|
|
417
|
-
y: { type: 'number' },
|
|
418
|
-
z: { type: 'number' }
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
},
|
|
422
|
-
required: ['effectType', 'name', 'location']
|
|
423
|
-
},
|
|
424
|
-
outputSchema: {
|
|
425
|
-
type: 'object',
|
|
426
|
-
properties: {
|
|
427
|
-
success: { type: 'boolean' },
|
|
428
|
-
effectName: { type: 'string' },
|
|
429
|
-
effectPath: { type: 'string' },
|
|
430
|
-
message: { type: 'string' }
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
name: 'spawn_niagara_system',
|
|
436
|
-
description: `Spawn a Niagara system at a location.
|
|
437
|
-
|
|
438
|
-
Example:
|
|
439
|
-
- {"systemPath":"/Game/FX/NS_Explosion","location":{"x":0,"y":0,"z":200},"scale":1.0}`,
|
|
440
|
-
inputSchema: {
|
|
441
|
-
type: 'object',
|
|
442
|
-
properties: {
|
|
443
|
-
systemPath: { type: 'string', description: 'Path to Niagara system' },
|
|
444
|
-
location: {
|
|
445
|
-
type: 'object',
|
|
446
|
-
properties: {
|
|
447
|
-
x: { type: 'number' },
|
|
448
|
-
y: { type: 'number' },
|
|
449
|
-
z: { type: 'number' }
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
scale: { type: 'number', description: 'Scale factor' }
|
|
453
|
-
},
|
|
454
|
-
required: ['systemPath', 'location']
|
|
455
|
-
},
|
|
456
|
-
outputSchema: {
|
|
457
|
-
type: 'object',
|
|
458
|
-
properties: {
|
|
459
|
-
success: { type: 'boolean' },
|
|
460
|
-
spawned: { type: 'boolean' },
|
|
461
|
-
message: { type: 'string' }
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
// Blueprint Tools
|
|
466
|
-
{
|
|
467
|
-
name: 'create_blueprint',
|
|
468
|
-
description: `Create a new Blueprint asset at a path.
|
|
469
|
-
|
|
470
|
-
Example:
|
|
471
|
-
- {"name":"BP_Switch","blueprintType":"Actor","savePath":"/Game/Blueprints"}`,
|
|
472
|
-
inputSchema: {
|
|
473
|
-
type: 'object',
|
|
474
|
-
properties: {
|
|
475
|
-
name: { type: 'string', description: 'Blueprint name' },
|
|
476
|
-
blueprintType: { type: 'string', description: 'Type (Actor, Pawn, Character, etc.)' },
|
|
477
|
-
savePath: { type: 'string', description: 'Save location' }
|
|
478
|
-
},
|
|
479
|
-
required: ['name', 'blueprintType']
|
|
480
|
-
},
|
|
481
|
-
outputSchema: {
|
|
482
|
-
type: 'object',
|
|
483
|
-
properties: {
|
|
484
|
-
success: { type: 'boolean' },
|
|
485
|
-
blueprintPath: { type: 'string' },
|
|
486
|
-
message: { type: 'string' }
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
name: 'add_blueprint_component',
|
|
492
|
-
description: `Add a component to an existing Blueprint.
|
|
493
|
-
|
|
494
|
-
Example:
|
|
495
|
-
- {"blueprintName":"BP_Switch","componentType":"PointLightComponent","componentName":"KeyLight"}`,
|
|
496
|
-
inputSchema: {
|
|
497
|
-
type: 'object',
|
|
498
|
-
properties: {
|
|
499
|
-
blueprintName: { type: 'string', description: 'Blueprint name' },
|
|
500
|
-
componentType: { type: 'string', description: 'Component type' },
|
|
501
|
-
componentName: { type: 'string', description: 'Component name' }
|
|
502
|
-
},
|
|
503
|
-
required: ['blueprintName', 'componentType', 'componentName']
|
|
504
|
-
},
|
|
505
|
-
outputSchema: {
|
|
506
|
-
type: 'object',
|
|
507
|
-
properties: {
|
|
508
|
-
success: { type: 'boolean' },
|
|
509
|
-
componentAdded: { type: 'string' },
|
|
510
|
-
message: { type: 'string' },
|
|
511
|
-
warning: { type: 'string' }
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
},
|
|
515
|
-
// Level Tools
|
|
516
|
-
{
|
|
517
|
-
name: 'load_level',
|
|
518
|
-
description: `Load a level by path (e.g., /Game/Maps/Lobby).
|
|
519
|
-
|
|
520
|
-
Example:
|
|
521
|
-
- {"levelPath":"/Game/Maps/Lobby","streaming":false}`,
|
|
522
|
-
inputSchema: {
|
|
523
|
-
type: 'object',
|
|
524
|
-
properties: {
|
|
525
|
-
levelPath: { type: 'string', description: 'Path to level' },
|
|
526
|
-
streaming: { type: 'boolean', description: 'Use streaming' }
|
|
527
|
-
},
|
|
528
|
-
required: ['levelPath']
|
|
529
|
-
},
|
|
530
|
-
outputSchema: {
|
|
531
|
-
type: 'object',
|
|
532
|
-
properties: {
|
|
533
|
-
success: { type: 'boolean' },
|
|
534
|
-
levelName: { type: 'string' },
|
|
535
|
-
message: { type: 'string' }
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
name: 'save_level',
|
|
541
|
-
description: `Save the current level to a path or by name.
|
|
542
|
-
|
|
543
|
-
Example:
|
|
544
|
-
- {"levelName":"Lobby","savePath":"/Game/Maps"}`,
|
|
545
|
-
inputSchema: {
|
|
546
|
-
type: 'object',
|
|
547
|
-
properties: {
|
|
548
|
-
levelName: { type: 'string', description: 'Level name' },
|
|
549
|
-
savePath: { type: 'string', description: 'Save path' }
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
outputSchema: {
|
|
553
|
-
type: 'object',
|
|
554
|
-
properties: {
|
|
555
|
-
success: { type: 'boolean' },
|
|
556
|
-
saved: { type: 'boolean' },
|
|
557
|
-
message: { type: 'string' }
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
name: 'stream_level',
|
|
563
|
-
description: `Stream in/out a sublevel and set visibility.
|
|
564
|
-
|
|
565
|
-
Example:
|
|
566
|
-
- {"levelName":"Sublevel_A","shouldBeLoaded":true,"shouldBeVisible":true}`,
|
|
567
|
-
inputSchema: {
|
|
568
|
-
type: 'object',
|
|
569
|
-
properties: {
|
|
570
|
-
levelName: { type: 'string', description: 'Level name' },
|
|
571
|
-
shouldBeLoaded: { type: 'boolean', description: 'Load or unload' },
|
|
572
|
-
shouldBeVisible: { type: 'boolean', description: 'Make visible' }
|
|
573
|
-
},
|
|
574
|
-
required: ['levelName', 'shouldBeLoaded', 'shouldBeVisible']
|
|
575
|
-
},
|
|
576
|
-
outputSchema: {
|
|
577
|
-
type: 'object',
|
|
578
|
-
properties: {
|
|
579
|
-
success: { type: 'boolean' },
|
|
580
|
-
loaded: { type: 'boolean' },
|
|
581
|
-
visible: { type: 'boolean' },
|
|
582
|
-
message: { type: 'string' }
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
},
|
|
586
|
-
// Lighting Tools
|
|
587
|
-
{
|
|
588
|
-
name: 'create_light',
|
|
589
|
-
description: `Create a light (Directional/Point/Spot/Rect/Sky) with optional transform/intensity.
|
|
590
|
-
|
|
591
|
-
Examples:
|
|
592
|
-
- {"lightType":"Directional","name":"KeyLight","intensity":5.0}
|
|
593
|
-
- {"lightType":"Point","name":"Fill","location":{"x":0,"y":100,"z":200},"intensity":2000}`,
|
|
594
|
-
inputSchema: {
|
|
595
|
-
type: 'object',
|
|
596
|
-
properties: {
|
|
597
|
-
lightType: { type: 'string', description: 'Light type (Directional, Point, Spot, Rect)' },
|
|
598
|
-
name: { type: 'string', description: 'Light name' },
|
|
599
|
-
location: {
|
|
600
|
-
type: 'object',
|
|
601
|
-
properties: {
|
|
602
|
-
x: { type: 'number' },
|
|
603
|
-
y: { type: 'number' },
|
|
604
|
-
z: { type: 'number' }
|
|
605
|
-
}
|
|
606
|
-
},
|
|
607
|
-
intensity: { type: 'number', description: 'Light intensity' }
|
|
608
|
-
},
|
|
609
|
-
required: ['lightType', 'name']
|
|
610
|
-
},
|
|
611
|
-
outputSchema: {
|
|
612
|
-
type: 'object',
|
|
613
|
-
properties: {
|
|
614
|
-
success: { type: 'boolean' },
|
|
615
|
-
lightName: { type: 'string' },
|
|
616
|
-
message: { type: 'string' }
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
name: 'build_lighting',
|
|
622
|
-
description: `Start a lighting build.
|
|
623
|
-
|
|
624
|
-
When to use:
|
|
625
|
-
- Bake lights for preview or final output (choose quality).
|
|
626
|
-
|
|
627
|
-
Example:
|
|
628
|
-
- {"quality":"High"}`,
|
|
629
|
-
inputSchema: {
|
|
630
|
-
type: 'object',
|
|
631
|
-
properties: {
|
|
632
|
-
quality: { type: 'string', description: 'Quality (Preview, Medium, High, Production)' }
|
|
633
|
-
}
|
|
634
|
-
},
|
|
635
|
-
outputSchema: {
|
|
636
|
-
type: 'object',
|
|
637
|
-
properties: {
|
|
638
|
-
success: { type: 'boolean' },
|
|
639
|
-
quality: { type: 'string' },
|
|
640
|
-
message: { type: 'string' }
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
},
|
|
644
|
-
// Landscape Tools
|
|
645
|
-
{
|
|
646
|
-
name: 'create_landscape',
|
|
647
|
-
description: `Attempt to create a landscape.
|
|
648
|
-
|
|
649
|
-
Notes:
|
|
650
|
-
- Native Python APIs are limited; you may be guided to use Landscape Mode in the editor.
|
|
651
|
-
|
|
652
|
-
Example:
|
|
653
|
-
- {"name":"Landscape_Basic","sizeX":1024,"sizeY":1024}`,
|
|
654
|
-
inputSchema: {
|
|
655
|
-
type: 'object',
|
|
656
|
-
properties: {
|
|
657
|
-
name: { type: 'string', description: 'Landscape name' },
|
|
658
|
-
sizeX: { type: 'number', description: 'Size X' },
|
|
659
|
-
sizeY: { type: 'number', description: 'Size Y' },
|
|
660
|
-
materialPath: { type: 'string', description: 'Material path' }
|
|
661
|
-
},
|
|
662
|
-
required: ['name']
|
|
663
|
-
},
|
|
664
|
-
outputSchema: {
|
|
665
|
-
type: 'object',
|
|
666
|
-
properties: {
|
|
667
|
-
success: { type: 'boolean' },
|
|
668
|
-
landscapeName: { type: 'string' },
|
|
669
|
-
message: { type: 'string' }
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
name: 'sculpt_landscape',
|
|
675
|
-
description: `Sculpt a landscape using editor tools (best-effort; some operations may require manual Landscape Mode).
|
|
676
|
-
|
|
677
|
-
Example:
|
|
678
|
-
- {"landscapeName":"Landscape_Basic","tool":"Smooth","brushSize":300,"strength":0.5}`,
|
|
679
|
-
inputSchema: {
|
|
680
|
-
type: 'object',
|
|
681
|
-
properties: {
|
|
682
|
-
landscapeName: { type: 'string', description: 'Landscape name' },
|
|
683
|
-
tool: { type: 'string', description: 'Tool (Sculpt, Smooth, Flatten, etc.)' },
|
|
684
|
-
brushSize: { type: 'number', description: 'Brush size' },
|
|
685
|
-
strength: { type: 'number', description: 'Tool strength' }
|
|
686
|
-
},
|
|
687
|
-
required: ['landscapeName', 'tool']
|
|
688
|
-
},
|
|
689
|
-
outputSchema: {
|
|
690
|
-
type: 'object',
|
|
691
|
-
properties: {
|
|
692
|
-
success: { type: 'boolean' },
|
|
693
|
-
message: { type: 'string' }
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
},
|
|
697
|
-
// Foliage Tools
|
|
698
|
-
{
|
|
699
|
-
name: 'add_foliage_type',
|
|
700
|
-
description: `Create or load a FoliageType asset for instanced foliage workflows.
|
|
701
|
-
|
|
702
|
-
Example:
|
|
703
|
-
- {"name":"FT_Grass","meshPath":"/Game/Foliage/SM_Grass","density":300}`,
|
|
704
|
-
inputSchema: {
|
|
705
|
-
type: 'object',
|
|
706
|
-
properties: {
|
|
707
|
-
name: { type: 'string', description: 'Foliage type name' },
|
|
708
|
-
meshPath: { type: 'string', description: 'Path to mesh' },
|
|
709
|
-
density: { type: 'number', description: 'Density' }
|
|
710
|
-
},
|
|
711
|
-
required: ['name', 'meshPath']
|
|
712
|
-
},
|
|
713
|
-
outputSchema: {
|
|
714
|
-
type: 'object',
|
|
715
|
-
properties: {
|
|
716
|
-
success: { type: 'boolean' },
|
|
717
|
-
foliageTypeName: { type: 'string' },
|
|
718
|
-
message: { type: 'string' }
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
name: 'paint_foliage',
|
|
724
|
-
description: `Paint foliage onto the world.
|
|
725
|
-
|
|
726
|
-
When to use:
|
|
727
|
-
- Scatter instances using an existing FoliageType.
|
|
728
|
-
|
|
729
|
-
Example:
|
|
730
|
-
- {"foliageType":"/Game/Foliage/Types/FT_Grass","position":{"x":0,"y":0,"z":0},"brushSize":300}`,
|
|
731
|
-
inputSchema: {
|
|
732
|
-
type: 'object',
|
|
733
|
-
properties: {
|
|
734
|
-
foliageType: { type: 'string', description: 'Foliage type' },
|
|
735
|
-
position: {
|
|
736
|
-
type: 'object',
|
|
737
|
-
properties: {
|
|
738
|
-
x: { type: 'number' },
|
|
739
|
-
y: { type: 'number' },
|
|
740
|
-
z: { type: 'number' }
|
|
741
|
-
}
|
|
742
|
-
},
|
|
743
|
-
brushSize: { type: 'number', description: 'Brush size' }
|
|
744
|
-
},
|
|
745
|
-
required: ['foliageType', 'position']
|
|
746
|
-
},
|
|
747
|
-
outputSchema: {
|
|
748
|
-
type: 'object',
|
|
749
|
-
properties: {
|
|
750
|
-
success: { type: 'boolean' },
|
|
751
|
-
instancesPlaced: { type: 'number' },
|
|
752
|
-
message: { type: 'string' }
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
},
|
|
756
|
-
// Debug Visualization Tools
|
|
757
|
-
{
|
|
758
|
-
name: 'draw_debug_shape',
|
|
759
|
-
description: `Draw a debug shape.
|
|
760
|
-
|
|
761
|
-
Example:
|
|
762
|
-
- {"shape":"Sphere","position":{"x":0,"y":0,"z":0},"size":100,"color":[255,0,0,255],"duration":3}`,
|
|
763
|
-
inputSchema: {
|
|
764
|
-
type: 'object',
|
|
765
|
-
properties: {
|
|
766
|
-
shape: { type: 'string', description: 'Shape type (Line, Box, Sphere, etc.)' },
|
|
767
|
-
position: {
|
|
768
|
-
type: 'object',
|
|
769
|
-
properties: {
|
|
770
|
-
x: { type: 'number' },
|
|
771
|
-
y: { type: 'number' },
|
|
772
|
-
z: { type: 'number' }
|
|
773
|
-
}
|
|
774
|
-
},
|
|
775
|
-
size: { type: 'number', description: 'Size/radius' },
|
|
776
|
-
color: {
|
|
777
|
-
type: 'array',
|
|
778
|
-
items: { type: 'number' },
|
|
779
|
-
description: 'RGBA color'
|
|
780
|
-
},
|
|
781
|
-
duration: { type: 'number', description: 'Duration in seconds' }
|
|
782
|
-
},
|
|
783
|
-
required: ['shape', 'position']
|
|
784
|
-
},
|
|
785
|
-
outputSchema: {
|
|
786
|
-
type: 'object',
|
|
787
|
-
properties: {
|
|
788
|
-
success: { type: 'boolean' },
|
|
789
|
-
message: { type: 'string' }
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
name: 'set_view_mode',
|
|
795
|
-
description: `Set the viewport view mode.
|
|
796
|
-
|
|
797
|
-
Example:
|
|
798
|
-
- {"mode":"Wireframe"}`,
|
|
799
|
-
inputSchema: {
|
|
800
|
-
type: 'object',
|
|
801
|
-
properties: {
|
|
802
|
-
mode: { type: 'string', description: 'View mode (Lit, Unlit, Wireframe, etc.)' }
|
|
803
|
-
},
|
|
804
|
-
required: ['mode']
|
|
805
|
-
},
|
|
806
|
-
outputSchema: {
|
|
807
|
-
type: 'object',
|
|
808
|
-
properties: {
|
|
809
|
-
success: { type: 'boolean' },
|
|
810
|
-
viewMode: { type: 'string' },
|
|
811
|
-
message: { type: 'string' }
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
},
|
|
815
|
-
// Performance Tools
|
|
816
|
-
{
|
|
817
|
-
name: 'start_profiling',
|
|
818
|
-
description: `Start performance profiling.
|
|
819
|
-
|
|
820
|
-
Example:
|
|
821
|
-
- {"type":"GPU","duration":10}`,
|
|
822
|
-
inputSchema: {
|
|
823
|
-
type: 'object',
|
|
824
|
-
properties: {
|
|
825
|
-
type: { type: 'string', description: 'Profiling type (CPU, GPU, Memory, etc.)' },
|
|
826
|
-
duration: { type: 'number', description: 'Duration in seconds' }
|
|
827
|
-
},
|
|
828
|
-
required: ['type']
|
|
829
|
-
},
|
|
830
|
-
outputSchema: {
|
|
831
|
-
type: 'object',
|
|
832
|
-
properties: {
|
|
833
|
-
success: { type: 'boolean' },
|
|
834
|
-
profiling: { type: 'boolean' },
|
|
835
|
-
message: { type: 'string' }
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
},
|
|
839
|
-
{
|
|
840
|
-
name: 'show_fps',
|
|
841
|
-
description: `Show/hide the FPS counter.
|
|
842
|
-
|
|
843
|
-
Example:
|
|
844
|
-
- {"enabled":true,"verbose":false}`,
|
|
845
|
-
inputSchema: {
|
|
846
|
-
type: 'object',
|
|
847
|
-
properties: {
|
|
848
|
-
enabled: { type: 'boolean', description: 'Enable FPS display' },
|
|
849
|
-
verbose: { type: 'boolean', description: 'Show verbose stats' }
|
|
850
|
-
},
|
|
851
|
-
required: ['enabled']
|
|
852
|
-
},
|
|
853
|
-
outputSchema: {
|
|
854
|
-
type: 'object',
|
|
855
|
-
properties: {
|
|
856
|
-
success: { type: 'boolean' },
|
|
857
|
-
fpsVisible: { type: 'boolean' },
|
|
858
|
-
message: { type: 'string' }
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
name: 'set_scalability',
|
|
864
|
-
description: `Set scalability/quality levels.
|
|
865
|
-
|
|
866
|
-
Example:
|
|
867
|
-
- {"category":"Shadows","level":2}`,
|
|
868
|
-
inputSchema: {
|
|
869
|
-
type: 'object',
|
|
870
|
-
properties: {
|
|
871
|
-
category: { type: 'string', description: 'Category (Shadows, Textures, Effects, etc.)' },
|
|
872
|
-
level: { type: 'number', description: 'Quality level (0-4)' }
|
|
873
|
-
},
|
|
874
|
-
required: ['category', 'level']
|
|
875
|
-
},
|
|
876
|
-
outputSchema: {
|
|
877
|
-
type: 'object',
|
|
878
|
-
properties: {
|
|
879
|
-
success: { type: 'boolean' },
|
|
880
|
-
qualityLevel: { type: 'number' },
|
|
881
|
-
message: { type: 'string' }
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
},
|
|
885
|
-
// Audio Tools
|
|
886
|
-
{
|
|
887
|
-
name: 'play_sound',
|
|
888
|
-
description: `Play a sound.
|
|
889
|
-
|
|
890
|
-
Example:
|
|
891
|
-
- {"soundPath":"/Game/Audio/SFX/Click","volume":0.5,"is3D":true}`,
|
|
892
|
-
inputSchema: {
|
|
893
|
-
type: 'object',
|
|
894
|
-
properties: {
|
|
895
|
-
soundPath: { type: 'string', description: 'Path to sound asset' },
|
|
896
|
-
location: {
|
|
897
|
-
type: 'object',
|
|
898
|
-
properties: {
|
|
899
|
-
x: { type: 'number' },
|
|
900
|
-
y: { type: 'number' },
|
|
901
|
-
z: { type: 'number' }
|
|
902
|
-
}
|
|
903
|
-
},
|
|
904
|
-
volume: { type: 'number', description: 'Volume (0-1)' },
|
|
905
|
-
is3D: { type: 'boolean', description: '3D or 2D sound' }
|
|
906
|
-
},
|
|
907
|
-
required: ['soundPath']
|
|
908
|
-
},
|
|
909
|
-
outputSchema: {
|
|
910
|
-
type: 'object',
|
|
911
|
-
properties: {
|
|
912
|
-
success: { type: 'boolean' },
|
|
913
|
-
soundPlaying: { type: 'boolean' },
|
|
914
|
-
message: { type: 'string' }
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
},
|
|
918
|
-
{
|
|
919
|
-
name: 'create_ambient_sound',
|
|
920
|
-
description: `Create an ambient sound actor.
|
|
921
|
-
|
|
922
|
-
Example:
|
|
923
|
-
- {"name":"Amb_Wind","soundPath":"/Game/Audio/Amb/AMB_Wind","location":{"x":0,"y":0,"z":0},"radius":1000}`,
|
|
924
|
-
inputSchema: {
|
|
925
|
-
type: 'object',
|
|
926
|
-
properties: {
|
|
927
|
-
name: { type: 'string', description: 'Sound name' },
|
|
928
|
-
soundPath: { type: 'string', description: 'Path to sound' },
|
|
929
|
-
location: {
|
|
930
|
-
type: 'object',
|
|
931
|
-
properties: {
|
|
932
|
-
x: { type: 'number' },
|
|
933
|
-
y: { type: 'number' },
|
|
934
|
-
z: { type: 'number' }
|
|
935
|
-
}
|
|
936
|
-
},
|
|
937
|
-
radius: { type: 'number', description: 'Sound radius' }
|
|
938
|
-
},
|
|
939
|
-
required: ['name', 'soundPath', 'location']
|
|
940
|
-
},
|
|
941
|
-
outputSchema: {
|
|
942
|
-
type: 'object',
|
|
943
|
-
properties: {
|
|
944
|
-
success: { type: 'boolean' },
|
|
945
|
-
soundName: { type: 'string' },
|
|
946
|
-
message: { type: 'string' }
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
},
|
|
950
|
-
// UI Tools
|
|
951
|
-
{
|
|
952
|
-
name: 'create_widget',
|
|
953
|
-
description: `Create a UI widget.
|
|
954
|
-
|
|
955
|
-
Example:
|
|
956
|
-
- {"name":"HUDMain","type":"HUD","savePath":"/Game/UI"}`,
|
|
957
|
-
inputSchema: {
|
|
958
|
-
type: 'object',
|
|
959
|
-
properties: {
|
|
960
|
-
name: { type: 'string', description: 'Widget name' },
|
|
961
|
-
type: { type: 'string', description: 'Widget type (HUD, Menu, etc.)' },
|
|
962
|
-
savePath: { type: 'string', description: 'Save location' }
|
|
963
|
-
},
|
|
964
|
-
required: ['name']
|
|
965
|
-
},
|
|
966
|
-
outputSchema: {
|
|
967
|
-
type: 'object',
|
|
968
|
-
properties: {
|
|
969
|
-
success: { type: 'boolean' },
|
|
970
|
-
widgetPath: { type: 'string' },
|
|
971
|
-
message: { type: 'string' }
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
},
|
|
975
|
-
{
|
|
976
|
-
name: 'show_widget',
|
|
977
|
-
description: `Show or hide a widget.
|
|
978
|
-
|
|
979
|
-
Example:
|
|
980
|
-
- {"widgetName":"HUDMain","visible":true}`,
|
|
981
|
-
inputSchema: {
|
|
982
|
-
type: 'object',
|
|
983
|
-
properties: {
|
|
984
|
-
widgetName: { type: 'string', description: 'Widget name' },
|
|
985
|
-
visible: { type: 'boolean', description: 'Show or hide' }
|
|
986
|
-
},
|
|
987
|
-
required: ['widgetName', 'visible']
|
|
988
|
-
},
|
|
989
|
-
outputSchema: {
|
|
990
|
-
type: 'object',
|
|
991
|
-
properties: {
|
|
992
|
-
success: { type: 'boolean' },
|
|
993
|
-
widgetVisible: { type: 'boolean' },
|
|
994
|
-
message: { type: 'string' }
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
},
|
|
998
|
-
{
|
|
999
|
-
name: 'create_hud',
|
|
1000
|
-
description: `Create a HUD description/layout.
|
|
1001
|
-
|
|
1002
|
-
Example:
|
|
1003
|
-
- {"name":"GameHUD","elements":[{"type":"Text","position":[10,10]}]}`,
|
|
1004
|
-
inputSchema: {
|
|
1005
|
-
type: 'object',
|
|
1006
|
-
properties: {
|
|
1007
|
-
name: { type: 'string', description: 'HUD name' },
|
|
1008
|
-
elements: {
|
|
1009
|
-
type: 'array',
|
|
1010
|
-
items: {
|
|
1011
|
-
type: 'object',
|
|
1012
|
-
properties: {
|
|
1013
|
-
type: { type: 'string', description: 'Element type' },
|
|
1014
|
-
position: {
|
|
1015
|
-
type: 'array',
|
|
1016
|
-
items: { type: 'number' }
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
},
|
|
1022
|
-
required: ['name']
|
|
1023
|
-
},
|
|
1024
|
-
outputSchema: {
|
|
1025
|
-
type: 'object',
|
|
1026
|
-
properties: {
|
|
1027
|
-
success: { type: 'boolean' },
|
|
1028
|
-
hudPath: { type: 'string' },
|
|
1029
|
-
message: { type: 'string' }
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
},
|
|
1033
|
-
// Console command (universal tool)
|
|
1034
|
-
{
|
|
1035
|
-
name: 'console_command',
|
|
1036
|
-
description: `Execute a console command.
|
|
1037
|
-
|
|
1038
|
-
When to use:
|
|
1039
|
-
- Quick toggles like "stat fps", "viewmode wireframe", or r.* cvars.
|
|
1040
|
-
|
|
1041
|
-
Examples:
|
|
1042
|
-
- {"command":"stat fps"}
|
|
1043
|
-
- {"command":"r.ScreenPercentage 75"}`,
|
|
1044
|
-
inputSchema: {
|
|
1045
|
-
type: 'object',
|
|
1046
|
-
properties: {
|
|
1047
|
-
command: { type: 'string', description: 'Console command to execute' }
|
|
1048
|
-
},
|
|
1049
|
-
required: ['command']
|
|
1050
|
-
},
|
|
1051
|
-
outputSchema: {
|
|
1052
|
-
type: 'object',
|
|
1053
|
-
properties: {
|
|
1054
|
-
success: { type: 'boolean' },
|
|
1055
|
-
command: { type: 'string' },
|
|
1056
|
-
result: { type: 'object' },
|
|
1057
|
-
warning: { type: 'string' },
|
|
1058
|
-
info: { type: 'string' },
|
|
1059
|
-
error: { type: 'string' },
|
|
1060
|
-
message: { type: 'string' }
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
];
|
|
1065
|
-
//# sourceMappingURL=tool-definitions.js.map
|