@satelliteoflove/godot-mcp 2.1.0 → 2.3.0
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/dist/tools/editor.d.ts +20 -5
- package/dist/tools/editor.d.ts.map +1 -1
- package/dist/tools/editor.js +27 -4
- package/dist/tools/editor.js.map +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +3 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/scene3d.d.ts +138 -0
- package/dist/tools/scene3d.d.ts.map +1 -0
- package/dist/tools/scene3d.js +116 -0
- package/dist/tools/scene3d.js.map +1 -0
- package/package.json +1 -1
package/dist/tools/editor.d.ts
CHANGED
|
@@ -1,40 +1,55 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import type { AnyToolDefinition } from '../core/types.js';
|
|
3
3
|
export declare const editor: import("../core/types.js").ToolDefinition<z.ZodEffects<z.ZodObject<{
|
|
4
|
-
action: z.ZodEnum<["get_state", "get_selection", "select", "run", "stop", "get_debug_output", "get_performance", "screenshot_game", "screenshot_editor"]>;
|
|
4
|
+
action: z.ZodEnum<["get_state", "get_selection", "select", "run", "stop", "get_debug_output", "get_performance", "screenshot_game", "screenshot_editor", "set_viewport_2d"]>;
|
|
5
5
|
node_path: z.ZodOptional<z.ZodString>;
|
|
6
6
|
scene_path: z.ZodOptional<z.ZodString>;
|
|
7
7
|
clear: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
viewport: z.ZodOptional<z.ZodEnum<["2d", "3d"]>>;
|
|
9
9
|
max_width: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
center_x: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
center_y: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
zoom: z.ZodOptional<z.ZodNumber>;
|
|
10
13
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
action: "get_state" | "get_selection" | "select" | "run" | "stop" | "get_debug_output" | "get_performance" | "screenshot_game" | "screenshot_editor";
|
|
14
|
+
action: "get_state" | "get_selection" | "select" | "run" | "stop" | "get_debug_output" | "get_performance" | "screenshot_game" | "screenshot_editor" | "set_viewport_2d";
|
|
12
15
|
scene_path?: string | undefined;
|
|
13
16
|
node_path?: string | undefined;
|
|
14
17
|
clear?: boolean | undefined;
|
|
15
18
|
viewport?: "2d" | "3d" | undefined;
|
|
16
19
|
max_width?: number | undefined;
|
|
20
|
+
center_x?: number | undefined;
|
|
21
|
+
center_y?: number | undefined;
|
|
22
|
+
zoom?: number | undefined;
|
|
17
23
|
}, {
|
|
18
|
-
action: "get_state" | "get_selection" | "select" | "run" | "stop" | "get_debug_output" | "get_performance" | "screenshot_game" | "screenshot_editor";
|
|
24
|
+
action: "get_state" | "get_selection" | "select" | "run" | "stop" | "get_debug_output" | "get_performance" | "screenshot_game" | "screenshot_editor" | "set_viewport_2d";
|
|
19
25
|
scene_path?: string | undefined;
|
|
20
26
|
node_path?: string | undefined;
|
|
21
27
|
clear?: boolean | undefined;
|
|
22
28
|
viewport?: "2d" | "3d" | undefined;
|
|
23
29
|
max_width?: number | undefined;
|
|
30
|
+
center_x?: number | undefined;
|
|
31
|
+
center_y?: number | undefined;
|
|
32
|
+
zoom?: number | undefined;
|
|
24
33
|
}>, {
|
|
25
|
-
action: "get_state" | "get_selection" | "select" | "run" | "stop" | "get_debug_output" | "get_performance" | "screenshot_game" | "screenshot_editor";
|
|
34
|
+
action: "get_state" | "get_selection" | "select" | "run" | "stop" | "get_debug_output" | "get_performance" | "screenshot_game" | "screenshot_editor" | "set_viewport_2d";
|
|
26
35
|
scene_path?: string | undefined;
|
|
27
36
|
node_path?: string | undefined;
|
|
28
37
|
clear?: boolean | undefined;
|
|
29
38
|
viewport?: "2d" | "3d" | undefined;
|
|
30
39
|
max_width?: number | undefined;
|
|
40
|
+
center_x?: number | undefined;
|
|
41
|
+
center_y?: number | undefined;
|
|
42
|
+
zoom?: number | undefined;
|
|
31
43
|
}, {
|
|
32
|
-
action: "get_state" | "get_selection" | "select" | "run" | "stop" | "get_debug_output" | "get_performance" | "screenshot_game" | "screenshot_editor";
|
|
44
|
+
action: "get_state" | "get_selection" | "select" | "run" | "stop" | "get_debug_output" | "get_performance" | "screenshot_game" | "screenshot_editor" | "set_viewport_2d";
|
|
33
45
|
scene_path?: string | undefined;
|
|
34
46
|
node_path?: string | undefined;
|
|
35
47
|
clear?: boolean | undefined;
|
|
36
48
|
viewport?: "2d" | "3d" | undefined;
|
|
37
49
|
max_width?: number | undefined;
|
|
50
|
+
center_x?: number | undefined;
|
|
51
|
+
center_y?: number | undefined;
|
|
52
|
+
zoom?: number | undefined;
|
|
38
53
|
}>>;
|
|
39
54
|
export declare const editorTools: AnyToolDefinition[];
|
|
40
55
|
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/tools/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/tools/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,iBAAiB,EAAgB,MAAM,kBAAkB,CAAC;AA8FxE,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2GjB,CAAC;AAEH,eAAO,MAAM,WAAW,EAAe,iBAAiB,EAAE,CAAC"}
|
package/dist/tools/editor.js
CHANGED
|
@@ -10,8 +10,8 @@ function toImageContent(base64) {
|
|
|
10
10
|
const EditorSchema = z
|
|
11
11
|
.object({
|
|
12
12
|
action: z
|
|
13
|
-
.enum(['get_state', 'get_selection', 'select', 'run', 'stop', 'get_debug_output', 'get_performance', 'screenshot_game', 'screenshot_editor'])
|
|
14
|
-
.describe('Action: get_state, get_selection, select, run, stop, get_debug_output, get_performance, screenshot_game, screenshot_editor'),
|
|
13
|
+
.enum(['get_state', 'get_selection', 'select', 'run', 'stop', 'get_debug_output', 'get_performance', 'screenshot_game', 'screenshot_editor', 'set_viewport_2d'])
|
|
14
|
+
.describe('Action: get_state, get_selection, select, run, stop, get_debug_output, get_performance, screenshot_game, screenshot_editor, set_viewport_2d'),
|
|
15
15
|
node_path: z
|
|
16
16
|
.string()
|
|
17
17
|
.optional()
|
|
@@ -32,18 +32,33 @@ const EditorSchema = z
|
|
|
32
32
|
.number()
|
|
33
33
|
.optional()
|
|
34
34
|
.describe('Maximum width in pixels for screenshot (screenshot_game, screenshot_editor)'),
|
|
35
|
+
center_x: z
|
|
36
|
+
.number()
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('X coordinate to center the 2D viewport on (set_viewport_2d only)'),
|
|
39
|
+
center_y: z
|
|
40
|
+
.number()
|
|
41
|
+
.optional()
|
|
42
|
+
.describe('Y coordinate to center the 2D viewport on (set_viewport_2d only)'),
|
|
43
|
+
zoom: z
|
|
44
|
+
.number()
|
|
45
|
+
.positive()
|
|
46
|
+
.optional()
|
|
47
|
+
.describe('Zoom level for 2D viewport, e.g. 1.0 = 100%, 2.0 = 200% (set_viewport_2d only)'),
|
|
35
48
|
})
|
|
36
49
|
.refine((data) => {
|
|
37
50
|
switch (data.action) {
|
|
38
51
|
case 'select':
|
|
39
52
|
return !!data.node_path;
|
|
53
|
+
case 'set_viewport_2d':
|
|
54
|
+
return data.center_x !== undefined || data.center_y !== undefined || data.zoom !== undefined;
|
|
40
55
|
default:
|
|
41
56
|
return true;
|
|
42
57
|
}
|
|
43
|
-
}, { message: 'select
|
|
58
|
+
}, { message: 'select requires node_path; set_viewport_2d requires at least one of center_x, center_y, or zoom' });
|
|
44
59
|
export const editor = defineTool({
|
|
45
60
|
name: 'editor',
|
|
46
|
-
description: 'Control the Godot editor: get state, manage selection, run/stop project, get debug output, get performance metrics, capture screenshots',
|
|
61
|
+
description: 'Control the Godot editor: get state (includes viewport/camera info), manage selection, run/stop project, get debug output, get performance metrics, capture screenshots, set 2D viewport position/zoom',
|
|
47
62
|
schema: EditorSchema,
|
|
48
63
|
async execute(args, { godot }) {
|
|
49
64
|
switch (args.action) {
|
|
@@ -89,6 +104,14 @@ export const editor = defineTool({
|
|
|
89
104
|
const result = await godot.sendCommand('capture_editor_screenshot', { viewport: args.viewport, max_width: args.max_width });
|
|
90
105
|
return toImageContent(result.image_base64);
|
|
91
106
|
}
|
|
107
|
+
case 'set_viewport_2d': {
|
|
108
|
+
const result = await godot.sendCommand('set_2d_viewport', {
|
|
109
|
+
center_x: args.center_x ?? 0,
|
|
110
|
+
center_y: args.center_y ?? 0,
|
|
111
|
+
zoom: args.zoom ?? 1.0,
|
|
112
|
+
});
|
|
113
|
+
return `2D viewport set to center (${result.center.x.toFixed(1)}, ${result.center.y.toFixed(1)}) at ${result.zoom.toFixed(2)}x zoom`;
|
|
114
|
+
}
|
|
92
115
|
}
|
|
93
116
|
},
|
|
94
117
|
});
|
package/dist/tools/editor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../src/tools/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../src/tools/editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAgCpD,SAAS,cAAc,CAAC,MAAc;IACpC,OAAO;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,MAAM;QACZ,QAAQ,EA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CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YAC7C,CAAC;YAED,KAAK,mBAAmB,CAAC,CAAC,CAAC;gBACzB,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,WAAW,CACpC,2BAA2B,EAC3B,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CACvD,CAAC;gBACF,OAAO,cAAc,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YAC7C,CAAC;YAED,KAAK,iBAAiB,CAAC,CAAC,CAAC;gBACvB,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,WAAW,CAGnC,iBAAiB,EAAE;oBACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,CAAC;oBAC5B,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,CAAC;oBAC5B,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,GAAG;iBACvB,CAAC,CAAC;gBACH,OAAO,8BAA8B,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;YACvI,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAM,CAAwB,CAAC"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -6,4 +6,5 @@ export { projectTools } from './project.js';
|
|
|
6
6
|
export { animationTools } from './animation.js';
|
|
7
7
|
export { tilemapTools } from './tilemap.js';
|
|
8
8
|
export { resourceTools } from './resource.js';
|
|
9
|
+
export { scene3dTools } from './scene3d.js';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAUA,wBAAgB,gBAAgB,IAAI,IAAI,CASvC;AAED,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import { projectTools } from './project.js';
|
|
|
6
6
|
import { animationTools } from './animation.js';
|
|
7
7
|
import { tilemapTools } from './tilemap.js';
|
|
8
8
|
import { resourceTools } from './resource.js';
|
|
9
|
+
import { scene3dTools } from './scene3d.js';
|
|
9
10
|
export function registerAllTools() {
|
|
10
11
|
registry.registerTools(sceneTools);
|
|
11
12
|
registry.registerTools(nodeTools);
|
|
@@ -14,6 +15,7 @@ export function registerAllTools() {
|
|
|
14
15
|
registry.registerTools(animationTools);
|
|
15
16
|
registry.registerTools(tilemapTools);
|
|
16
17
|
registry.registerTools(resourceTools);
|
|
18
|
+
registry.registerTools(scene3dTools);
|
|
17
19
|
}
|
|
18
20
|
export { sceneTools } from './scene.js';
|
|
19
21
|
export { nodeTools } from './node.js';
|
|
@@ -22,4 +24,5 @@ export { projectTools } from './project.js';
|
|
|
22
24
|
export { animationTools } from './animation.js';
|
|
23
25
|
export { tilemapTools } from './tilemap.js';
|
|
24
26
|
export { resourceTools } from './resource.js';
|
|
27
|
+
export { scene3dTools } from './scene3d.js';
|
|
25
28
|
//# sourceMappingURL=index.js.map
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,UAAU,gBAAgB;IAC9B,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IACnC,QAAQ,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,QAAQ,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;IACpC,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IACrC,QAAQ,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;IACvC,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;IACrC,QAAQ,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IACtC,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;AACvC,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { AnyToolDefinition } from '../core/types.js';
|
|
3
|
+
export declare const scene3d: import("../core/types.js").ToolDefinition<z.ZodEffects<z.ZodObject<{
|
|
4
|
+
action: z.ZodEnum<["get_spatial_info", "get_bounds"]>;
|
|
5
|
+
node_path: z.ZodOptional<z.ZodString>;
|
|
6
|
+
root_path: z.ZodOptional<z.ZodString>;
|
|
7
|
+
include_children: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8
|
+
type_filter: z.ZodOptional<z.ZodString>;
|
|
9
|
+
max_results: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
within_aabb: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
position: z.ZodObject<{
|
|
12
|
+
x: z.ZodNumber;
|
|
13
|
+
y: z.ZodNumber;
|
|
14
|
+
z: z.ZodNumber;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
z: number;
|
|
19
|
+
}, {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
z: number;
|
|
23
|
+
}>;
|
|
24
|
+
size: z.ZodObject<{
|
|
25
|
+
x: z.ZodNumber;
|
|
26
|
+
y: z.ZodNumber;
|
|
27
|
+
z: z.ZodNumber;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
x: number;
|
|
30
|
+
y: number;
|
|
31
|
+
z: number;
|
|
32
|
+
}, {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
z: number;
|
|
36
|
+
}>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
position: {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
z: number;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
z: number;
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
position: {
|
|
50
|
+
x: number;
|
|
51
|
+
y: number;
|
|
52
|
+
z: number;
|
|
53
|
+
};
|
|
54
|
+
size: {
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
z: number;
|
|
58
|
+
};
|
|
59
|
+
}>>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
action: "get_spatial_info" | "get_bounds";
|
|
62
|
+
include_children: boolean;
|
|
63
|
+
node_path?: string | undefined;
|
|
64
|
+
root_path?: string | undefined;
|
|
65
|
+
type_filter?: string | undefined;
|
|
66
|
+
max_results?: number | undefined;
|
|
67
|
+
within_aabb?: {
|
|
68
|
+
position: {
|
|
69
|
+
x: number;
|
|
70
|
+
y: number;
|
|
71
|
+
z: number;
|
|
72
|
+
};
|
|
73
|
+
size: {
|
|
74
|
+
x: number;
|
|
75
|
+
y: number;
|
|
76
|
+
z: number;
|
|
77
|
+
};
|
|
78
|
+
} | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
action: "get_spatial_info" | "get_bounds";
|
|
81
|
+
node_path?: string | undefined;
|
|
82
|
+
root_path?: string | undefined;
|
|
83
|
+
include_children?: boolean | undefined;
|
|
84
|
+
type_filter?: string | undefined;
|
|
85
|
+
max_results?: number | undefined;
|
|
86
|
+
within_aabb?: {
|
|
87
|
+
position: {
|
|
88
|
+
x: number;
|
|
89
|
+
y: number;
|
|
90
|
+
z: number;
|
|
91
|
+
};
|
|
92
|
+
size: {
|
|
93
|
+
x: number;
|
|
94
|
+
y: number;
|
|
95
|
+
z: number;
|
|
96
|
+
};
|
|
97
|
+
} | undefined;
|
|
98
|
+
}>, {
|
|
99
|
+
action: "get_spatial_info" | "get_bounds";
|
|
100
|
+
include_children: boolean;
|
|
101
|
+
node_path?: string | undefined;
|
|
102
|
+
root_path?: string | undefined;
|
|
103
|
+
type_filter?: string | undefined;
|
|
104
|
+
max_results?: number | undefined;
|
|
105
|
+
within_aabb?: {
|
|
106
|
+
position: {
|
|
107
|
+
x: number;
|
|
108
|
+
y: number;
|
|
109
|
+
z: number;
|
|
110
|
+
};
|
|
111
|
+
size: {
|
|
112
|
+
x: number;
|
|
113
|
+
y: number;
|
|
114
|
+
z: number;
|
|
115
|
+
};
|
|
116
|
+
} | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
action: "get_spatial_info" | "get_bounds";
|
|
119
|
+
node_path?: string | undefined;
|
|
120
|
+
root_path?: string | undefined;
|
|
121
|
+
include_children?: boolean | undefined;
|
|
122
|
+
type_filter?: string | undefined;
|
|
123
|
+
max_results?: number | undefined;
|
|
124
|
+
within_aabb?: {
|
|
125
|
+
position: {
|
|
126
|
+
x: number;
|
|
127
|
+
y: number;
|
|
128
|
+
z: number;
|
|
129
|
+
};
|
|
130
|
+
size: {
|
|
131
|
+
x: number;
|
|
132
|
+
y: number;
|
|
133
|
+
z: number;
|
|
134
|
+
};
|
|
135
|
+
} | undefined;
|
|
136
|
+
}>>;
|
|
137
|
+
export declare const scene3dTools: AnyToolDefinition[];
|
|
138
|
+
//# sourceMappingURL=scene3d.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene3d.d.ts","sourceRoot":"","sources":["../../src/tools/scene3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAiG1D,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyElB,CAAC;AAEH,eAAO,MAAM,YAAY,EAAgB,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineTool } from '../core/define-tool.js';
|
|
3
|
+
const Vector3Schema = z.object({
|
|
4
|
+
x: z.number(),
|
|
5
|
+
y: z.number(),
|
|
6
|
+
z: z.number(),
|
|
7
|
+
});
|
|
8
|
+
const AABBInputSchema = z.object({
|
|
9
|
+
position: Vector3Schema.describe('Min corner of the AABB'),
|
|
10
|
+
size: Vector3Schema.describe('Size of the AABB'),
|
|
11
|
+
});
|
|
12
|
+
const Scene3DSchema = z
|
|
13
|
+
.object({
|
|
14
|
+
action: z
|
|
15
|
+
.enum(['get_spatial_info', 'get_bounds'])
|
|
16
|
+
.describe('Action: get_spatial_info (node spatial data), get_bounds (combined AABB)'),
|
|
17
|
+
node_path: z
|
|
18
|
+
.string()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe('Path to the Node3D (required for get_spatial_info)'),
|
|
21
|
+
root_path: z
|
|
22
|
+
.string()
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('Path to search root (get_bounds only, defaults to scene root)'),
|
|
25
|
+
include_children: z
|
|
26
|
+
.boolean()
|
|
27
|
+
.optional()
|
|
28
|
+
.default(false)
|
|
29
|
+
.describe('Include child nodes (get_spatial_info only)'),
|
|
30
|
+
type_filter: z
|
|
31
|
+
.string()
|
|
32
|
+
.optional()
|
|
33
|
+
.describe('Filter by node type, e.g. "MeshInstance3D" (get_spatial_info only)'),
|
|
34
|
+
max_results: z
|
|
35
|
+
.number()
|
|
36
|
+
.int()
|
|
37
|
+
.positive()
|
|
38
|
+
.optional()
|
|
39
|
+
.describe('Limit number of results (get_spatial_info only). Defaults to 50 when include_children=true. Set higher (e.g., 500) if needed.'),
|
|
40
|
+
within_aabb: AABBInputSchema.optional().describe('Only include nodes whose global position is within this AABB (get_spatial_info only)'),
|
|
41
|
+
})
|
|
42
|
+
.refine((data) => {
|
|
43
|
+
switch (data.action) {
|
|
44
|
+
case 'get_spatial_info':
|
|
45
|
+
return !!data.node_path;
|
|
46
|
+
case 'get_bounds':
|
|
47
|
+
return true;
|
|
48
|
+
default:
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
}, {
|
|
52
|
+
message: 'Missing required fields for action. get_spatial_info requires node_path.',
|
|
53
|
+
});
|
|
54
|
+
function formatVector3(v) {
|
|
55
|
+
return `(${v.x.toFixed(3)}, ${v.y.toFixed(3)}, ${v.z.toFixed(3)})`;
|
|
56
|
+
}
|
|
57
|
+
function formatAABB(aabb) {
|
|
58
|
+
return `pos: ${formatVector3(aabb.position)}, size: ${formatVector3(aabb.size)}`;
|
|
59
|
+
}
|
|
60
|
+
export const scene3d = defineTool({
|
|
61
|
+
name: 'scene3d',
|
|
62
|
+
description: 'Get spatial information for 3D nodes: global transforms, bounding boxes, visibility. Use get_spatial_info for node details, get_bounds for combined AABB of a subtree.',
|
|
63
|
+
schema: Scene3DSchema,
|
|
64
|
+
async execute(args, { godot }) {
|
|
65
|
+
switch (args.action) {
|
|
66
|
+
case 'get_spatial_info': {
|
|
67
|
+
const DEFAULT_LIMIT = 50;
|
|
68
|
+
let effectiveLimit = args.max_results;
|
|
69
|
+
if (effectiveLimit === undefined && args.include_children) {
|
|
70
|
+
effectiveLimit = DEFAULT_LIMIT;
|
|
71
|
+
}
|
|
72
|
+
const result = await godot.sendCommand('get_spatial_info', {
|
|
73
|
+
node_path: args.node_path,
|
|
74
|
+
include_children: args.include_children,
|
|
75
|
+
type_filter: args.type_filter,
|
|
76
|
+
max_results: effectiveLimit,
|
|
77
|
+
within_aabb: args.within_aabb,
|
|
78
|
+
});
|
|
79
|
+
if (result.count === 0) {
|
|
80
|
+
return 'No matching Node3D nodes found';
|
|
81
|
+
}
|
|
82
|
+
const lines = result.nodes.map((n) => {
|
|
83
|
+
let line = `${n.path} (${n.type})\n`;
|
|
84
|
+
line += ` position: ${formatVector3(n.global_position)}\n`;
|
|
85
|
+
line += ` rotation: ${formatVector3(n.global_rotation)} rad\n`;
|
|
86
|
+
line += ` scale: ${formatVector3(n.global_scale)}\n`;
|
|
87
|
+
line += ` visible: ${n.visible}`;
|
|
88
|
+
if (n.global_aabb) {
|
|
89
|
+
line += `\n global_aabb: ${formatAABB(n.global_aabb)}`;
|
|
90
|
+
}
|
|
91
|
+
return line;
|
|
92
|
+
});
|
|
93
|
+
let output = `Found ${result.count} Node3D node(s):\n\n${lines.join('\n\n')}`;
|
|
94
|
+
if (result.truncated) {
|
|
95
|
+
const limitNote = args.max_results === undefined
|
|
96
|
+
? ` Set max_results higher (e.g., 100 or 500) to see more.`
|
|
97
|
+
: '';
|
|
98
|
+
output += `\n\n(Results truncated at ${result.max_results}.${limitNote})`;
|
|
99
|
+
}
|
|
100
|
+
return output;
|
|
101
|
+
}
|
|
102
|
+
case 'get_bounds': {
|
|
103
|
+
const result = await godot.sendCommand('get_scene_bounds', {
|
|
104
|
+
root_path: args.root_path,
|
|
105
|
+
});
|
|
106
|
+
return (`Scene bounds for ${result.root_path}:\n` +
|
|
107
|
+
` Visual nodes: ${result.node_count}\n` +
|
|
108
|
+
` Combined AABB: ${formatAABB(result.combined_aabb)}\n` +
|
|
109
|
+
` Min: ${formatVector3(result.combined_aabb.position)}\n` +
|
|
110
|
+
` Max: ${formatVector3(result.combined_aabb.end)}`);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
export const scene3dTools = [scene3d];
|
|
116
|
+
//# sourceMappingURL=scene3d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene3d.js","sourceRoot":"","sources":["../../src/tools/scene3d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AA0BpD,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACb,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACb,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,QAAQ,EAAE,aAAa,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAC1D,IAAI,EAAE,aAAa,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CACjD,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,CAAC;KACpB,MAAM,CAAC;IACN,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC;SACxC,QAAQ,CAAC,0EAA0E,CAAC;IACvF,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,oDAAoD,CAAC;IACjE,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,+DAA+D,CAAC;IAC5E,gBAAgB,EAAE,CA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