Skip to content

armgit / 67.js

Public Imported from GitHub
0

3D engine that AI agents drive

List floorSkyTrace in the MCP environment schema (part of #197)

Nguyen Xuan An962501593e2a
diff --git a/changes/197-sun-rooms.size.md b/changes/197-sun-rooms.size.md
index 002a9611..bd817996 100644
--- a/changes/197-sun-rooms.size.md
+++ b/changes/197-sun-rooms.size.md
@@ -1,3 +1,4 @@
- entry:floor-sky-visibility: +285 bytes gzip (15101 to 15386) for the onlyClosedRooms option, the room strength, the mean visibility in the report, applyDefaultFloorSky and the recipe stage with its cache
-- scene:agent-scene: +300 bytes gzip (103053 to 103353) for the floorSkyTrace field with its type check, one conditional call into the lazy module and the module entry with its markers; the sun and closed-room tests live in the lazy chunk. Goal growth accepted by the lead: the trace is on by default, so an agent that builds a sun-lit closed room gets the right light without knowing any flag, a real capability rather than a score gain. Measured FLIP against Cycles: temple-hall -0.0023, the three temple options -0.0051 to -0.0096, dark-shaft +0.0017 (no visible change, see the PR).
-- scene:agent-scene+lazy: +3751 bytes gzip (359885 to 363636), the same code plus the floor sky module loaded
+- scene:agent-scene: +302 bytes gzip (103227 to 103529) for the floorSkyTrace field with its type check, one conditional call into the lazy module and the module entry with its markers; the sun and closed-room tests live in the lazy chunk. Goal growth accepted by the lead: the trace is on by default, so an agent that builds a sun-lit closed room gets the right light without knowing any flag, a real capability rather than a score gain. Measured FLIP against Cycles: temple-hall -0.0023, the three temple options -0.0051 to -0.0096, dark-shaft +0.0017 (no visible change, see the PR).
+- scene:agent-scene+lazy: +3756 bytes gzip (363569 to 367325), the same code plus the floor sky module loaded
+- tool:scene_create: +119 bytes for the floorSkyTrace field and its one-line description, which the schema test needs because the backend now accepts the field; scene_apply and scene_create_asset point to this schema, so it is paid once
diff --git a/scripts/mcp-server.mjs b/scripts/mcp-server.mjs
index b2419f10..89393bdf 100644
--- a/scripts/mcp-server.mjs
+++ b/scripts/mcp-server.mjs
@@ -226,6 +226,7 @@ const environment = z.strictObject({
liquid: liquidOptics.optional().describe('Optics for materials tagged liquid or foam.'),
lines: lines.nullable().optional(),
objectReflections: z.boolean().optional().describe("false turns off reflection probes on smooth metal parts."),
+ floorSkyTrace: z.boolean().optional().describe('false turns off the sky traced into floors of sun-lit closed rooms.'),
resolveCoplanar: z.union([z.literal('offset'), z.literal(false)]).optional().describe("'offset' biases the smaller part of each coplanar pair at draw time; false clears."),
viewTransform: z.enum(VIEW_TRANSFORM_NAMES).optional().describe('Display transform, for example agx to compare with Blender.'),
look: z.enum(LOOK_NAMES).nullable().optional().describe('Named look preset; null clears.'),