@theprototype/agent 1.60.0 → 1.63.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/catalog.json +1377 -164
- package/package.json +1 -1
- package/src/browserEngine.js +10 -2
- package/src/catalog.js +60 -14
- package/src/mcpServer.js +9 -2
- package/src/mcpTools.js +13 -6
package/catalog.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"format": 2,
|
|
4
4
|
"generator": {
|
|
5
5
|
"source": "tpAgent.tools() via core scripts/agent-tool-catalog.cjs, mapped by tools/agent/src/catalog.js",
|
|
6
|
-
"hostTools":
|
|
6
|
+
"hostTools": 78,
|
|
7
7
|
"dropped": []
|
|
8
8
|
},
|
|
9
9
|
"instructions": "You are building in the person's own open theprototype.app tab: a live, shared 3D scene. Every change shows for everyone in the session and can be undone.\nThis may be a VOICE conversation: answer in one or two short spoken sentences and say what changed in plain words (\"Added three trees by the fire\"). Never read out uuids, lists of numbers or JSON.\nIf a tool says the tab is closed or not connected, tell the person to open theprototype.app and press Connect Claude, then wait; do not retry in a loop.\nCall status first: it says whether you may edit (a viewer can only look).\nWhen the person says \"undo that\" or \"take that back\", call undo_last; if it refuses, say who changed what.\nYou act as this person in their own tab: status \"you\" is them (their peer id, name and role); the other users are everyone else.\nCall list_scene before editing so you use real uuids; batch many objects into one call.\nFor \"in front of me\", call where_are_users and build at the spots it gives, facing the person (face_user: true). For \"here\" or \"this\", build at the person's latest ping: at: {ping: \"latest\"}; ask them to ping (Ctrl+Alt+click, or Ping in the menu) if they have none.\nMotion and interaction are flow nodes (create_flow_nodes); call describe_node_types before wiring edges.\nTake a screenshot after each change to check your work.\nWhen asked what you can do here, call what_can_you_do and say its \"say\" line.",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"near": {
|
|
49
49
|
"type": "object",
|
|
50
|
-
"description": "optional: only objects within radius of a WORLD position",
|
|
50
|
+
"description": "optional: only objects within radius of a WORLD position (by: origin = where the object is, the default; touches = any part of its world bounds; inside = all of it)",
|
|
51
51
|
"properties": {
|
|
52
52
|
"position": {
|
|
53
53
|
"type": "array",
|
|
@@ -58,6 +58,14 @@
|
|
|
58
58
|
},
|
|
59
59
|
"radius": {
|
|
60
60
|
"type": "number"
|
|
61
|
+
},
|
|
62
|
+
"by": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"enum": [
|
|
65
|
+
"origin",
|
|
66
|
+
"touches",
|
|
67
|
+
"inside"
|
|
68
|
+
]
|
|
61
69
|
}
|
|
62
70
|
},
|
|
63
71
|
"required": [
|
|
@@ -67,7 +75,7 @@
|
|
|
67
75
|
},
|
|
68
76
|
"bounds": {
|
|
69
77
|
"type": "object",
|
|
70
|
-
"description": "optional: only objects
|
|
78
|
+
"description": "optional: only objects inside this WORLD box — by: origin = their position (the default), touches = any part of their world mesh bounds overlaps it (a long wall crossing in), inside = all of it fits",
|
|
71
79
|
"properties": {
|
|
72
80
|
"min": {
|
|
73
81
|
"type": "array",
|
|
@@ -82,6 +90,14 @@
|
|
|
82
90
|
"type": "number"
|
|
83
91
|
},
|
|
84
92
|
"description": "[x, y, z]"
|
|
93
|
+
},
|
|
94
|
+
"by": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"enum": [
|
|
97
|
+
"origin",
|
|
98
|
+
"touches",
|
|
99
|
+
"inside"
|
|
100
|
+
]
|
|
85
101
|
}
|
|
86
102
|
},
|
|
87
103
|
"required": [
|
|
@@ -197,7 +213,7 @@
|
|
|
197
213
|
"items": {
|
|
198
214
|
"type": "number"
|
|
199
215
|
},
|
|
200
|
-
"description": "up to 4 constructor args. Box=[w,h,d], Sphere=[radius], Cylinder=[rTop,rBottom,height], Cone=[radius,height], Plane=[w,h], Torus=[radius,tube]. Omit for sensible defaults."
|
|
216
|
+
"description": "up to 4 constructor args. Box=[w,h,d], Sphere=[radius], Cylinder=[rTop,rBottom,height], Cone=[radius,height], Plane=[w,h], Torus=[radius,tube]. Omit for sensible defaults. Sizes go down to 0.001 m."
|
|
201
217
|
},
|
|
202
218
|
"name": {
|
|
203
219
|
"type": "string"
|
|
@@ -284,7 +300,7 @@
|
|
|
284
300
|
"description": "meshes and models: shadows fall on it (on by default)"
|
|
285
301
|
},
|
|
286
302
|
"lookAt": {
|
|
287
|
-
"description": "turn it so its local +Z
|
|
303
|
+
"description": "turn it so its front (local +Z, or the front you give) faces this: a world point [x,y,z] or another object's uuid (+Y stays up; lights use aim)"
|
|
288
304
|
},
|
|
289
305
|
"at": {
|
|
290
306
|
"type": "object",
|
|
@@ -322,11 +338,23 @@
|
|
|
322
338
|
"description": "stand it on whatever is straight under it (terrain, floor, table; at most 2 m above its base), else the ground"
|
|
323
339
|
},
|
|
324
340
|
"face_user": {
|
|
325
|
-
"description": "turn it (yaw only) so its
|
|
341
|
+
"description": "turn it (yaw only) so its front faces a person: true = the person you act for, or a peer id / name from where_are_users"
|
|
342
|
+
},
|
|
343
|
+
"front": {
|
|
344
|
+
"type": "string",
|
|
345
|
+
"enum": [
|
|
346
|
+
"+z",
|
|
347
|
+
"-z",
|
|
348
|
+
"+x",
|
|
349
|
+
"-x",
|
|
350
|
+
"+y",
|
|
351
|
+
"-y"
|
|
352
|
+
],
|
|
353
|
+
"description": "which local axis is its front for lookAt and face_user (default +z; many models face +x or -z — look at a screenshot)"
|
|
326
354
|
},
|
|
327
355
|
"parentUuid": {
|
|
328
356
|
"type": "string",
|
|
329
|
-
"description": "uuid of an existing group to nest under — position/rotation/scale are then LOCAL to that
|
|
357
|
+
"description": "uuid of an existing group (or any object, not a light or camera) to nest under — position/rotation/scale are then LOCAL to it. A uuid that is not in the scene is an error and that object is not made"
|
|
330
358
|
},
|
|
331
359
|
"physics": {
|
|
332
360
|
"type": "string",
|
|
@@ -469,7 +497,7 @@
|
|
|
469
497
|
"description": "meshes and models: shadows fall on it (on by default)"
|
|
470
498
|
},
|
|
471
499
|
"lookAt": {
|
|
472
|
-
"description": "turn it so its local +Z
|
|
500
|
+
"description": "turn it so its front (local +Z, or the front you give) faces this: a world point [x,y,z] or another object's uuid (+Y stays up; lights use aim)"
|
|
473
501
|
},
|
|
474
502
|
"at": {
|
|
475
503
|
"type": "object",
|
|
@@ -507,14 +535,26 @@
|
|
|
507
535
|
"description": "stand it on whatever is straight under it (terrain, floor, table; at most 2 m above its base), else the ground"
|
|
508
536
|
},
|
|
509
537
|
"face_user": {
|
|
510
|
-
"description": "turn it (yaw only) so its
|
|
538
|
+
"description": "turn it (yaw only) so its front faces a person: true = the person you act for, or a peer id / name from where_are_users"
|
|
539
|
+
},
|
|
540
|
+
"front": {
|
|
541
|
+
"type": "string",
|
|
542
|
+
"enum": [
|
|
543
|
+
"+z",
|
|
544
|
+
"-z",
|
|
545
|
+
"+x",
|
|
546
|
+
"-x",
|
|
547
|
+
"+y",
|
|
548
|
+
"-y"
|
|
549
|
+
],
|
|
550
|
+
"description": "which local axis is its front for lookAt and face_user (default +z; many models face +x or -z — look at a screenshot)"
|
|
511
551
|
},
|
|
512
552
|
"visible": {
|
|
513
553
|
"type": "boolean"
|
|
514
554
|
},
|
|
515
555
|
"parentUuid": {
|
|
516
556
|
"type": "string",
|
|
517
|
-
"description": "group uuid to nest under, or \"root\" to un-nest. The object keeps its world pose; a position given in the same update is LOCAL to the new parent"
|
|
557
|
+
"description": "group uuid (or any object, not a light or camera) to nest under, or \"root\" to un-nest. The object keeps its world pose; a position given in the same update is LOCAL to the new parent. A uuid not in the scene is an error"
|
|
518
558
|
}
|
|
519
559
|
},
|
|
520
560
|
"required": [
|
|
@@ -706,7 +746,7 @@
|
|
|
706
746
|
{
|
|
707
747
|
"name": "set_geometry",
|
|
708
748
|
"title": "Reshape objects",
|
|
709
|
-
"description": "Reshape existing objects in place (they keep uuid, transform, material and flows): change a primitive's params (the keys list_scene shows under geometry, e.g. {width, height, depth} for a Box, {radiusTop, radiusBottom, height, radialSegments} for a Cylinder, {segments, phiLength} for a Lathe, {depth, bevel} for an extrusion), or its TYPE (box → Cylinder) with params on top of the new type's defaults. A tube (create_tube) takes path, radius / radii, closed. An object whose vertices were hand-edited refuses unless force: true (the rebuild replaces those edits). Up to 100 objects per call, one undo step.\nTake a screenshot after each change to check your work.",
|
|
749
|
+
"description": "Reshape existing objects in place (they keep uuid, transform, material and flows): change a primitive's params (the keys list_scene shows under geometry, e.g. {width, height, depth} for a Box, {radiusTop, radiusBottom, height, radialSegments} for a Cylinder, {segments, phiLength} for a Lathe, {depth, bevel} for an extrusion), or its TYPE (box → Cylinder) with params on top of the new type's defaults. A tube (create_tube) takes path, radius / radii, closed. A 3D text (create_text) takes its text fields as params (text, font, size, depth, bevel, align, maxWidth, anchor, color …). An object whose vertices were hand-edited refuses unless force: true (the rebuild replaces those edits). Up to 100 objects per call, one undo step.\nTake a screenshot after each change to check your work.",
|
|
710
750
|
"inputSchema": {
|
|
711
751
|
"type": "object",
|
|
712
752
|
"properties": {
|
|
@@ -748,7 +788,7 @@
|
|
|
748
788
|
},
|
|
749
789
|
"params": {
|
|
750
790
|
"type": "object",
|
|
751
|
-
"description": "param name → value; sizes
|
|
791
|
+
"description": "param name → value; sizes from 0.001 m to 1 km (the same for every primitive), segment counts to their range"
|
|
752
792
|
},
|
|
753
793
|
"path": {
|
|
754
794
|
"type": "array",
|
|
@@ -870,7 +910,7 @@
|
|
|
870
910
|
},
|
|
871
911
|
"parentUuid": {
|
|
872
912
|
"type": "string",
|
|
873
|
-
"description": "uuid of a group to nest under — position / rotation / scale AND the shape's own points are then LOCAL to
|
|
913
|
+
"description": "uuid of a group (or any object, not a light or camera) to nest under — position / rotation / scale AND the shape's own points are then LOCAL to it (no position = its origin), so the part moves and turns with it. A uuid that is not in the scene is an error and nothing is made"
|
|
874
914
|
},
|
|
875
915
|
"physics": {
|
|
876
916
|
"type": "string",
|
|
@@ -1076,7 +1116,7 @@
|
|
|
1076
1116
|
},
|
|
1077
1117
|
"parentUuid": {
|
|
1078
1118
|
"type": "string",
|
|
1079
|
-
"description": "uuid of a group to nest under — position / rotation / scale AND the shape's own points are then LOCAL to
|
|
1119
|
+
"description": "uuid of a group (or any object, not a light or camera) to nest under — position / rotation / scale AND the shape's own points are then LOCAL to it (no position = its origin), so the part moves and turns with it. A uuid that is not in the scene is an error and nothing is made"
|
|
1080
1120
|
},
|
|
1081
1121
|
"physics": {
|
|
1082
1122
|
"type": "string",
|
|
@@ -1298,7 +1338,7 @@
|
|
|
1298
1338
|
{
|
|
1299
1339
|
"name": "create_mesh",
|
|
1300
1340
|
"title": "Make a mesh from data",
|
|
1301
|
-
"description": "A mesh from raw data: vertices [[x, y, z], …] and faces [[i, j, k] or [i, j, k, l] …] (indices into vertices, counter-clockwise seen from outside; polygons of up to 32 corners are fanned, so keep them convex), optional uvs (one [u, v] per vertex). Up to 20000 vertices and 20000 faces; normals are computed (smooth: true for smooth shading, flatShading: true for hard facets). Colour it as you make it: materials [{color, roughness, metalness, …}] (up to 16 slots) with faceMaterials [slot per face, same order as faces] for parts in different colours; or colors [
|
|
1341
|
+
"description": "A mesh from raw data: vertices [[x, y, z], …] and faces [[i, j, k] or [i, j, k, l] …] (indices into vertices, counter-clockwise seen from outside; polygons of up to 32 corners are fanned, so keep them convex), optional uvs (one [u, v] per vertex). Up to 20000 vertices and 20000 faces; normals are computed (smooth: true for smooth shading, flatShading: true for hard facets). Colour it as you make it: materials [{color, roughness, metalness, …}] (up to 16 slots) with faceMaterials [slot per face, same order as faces] for parts in different colours; or colors (one per vertex: [r, g, b] 0-1 meant as sRGB, the way a colour picker or a hex code means them, or a \"#rrggbb\" string; colorSpace: \"linear\" takes the numbers as linear) for a painted gradient — they multiply the material colour, which is white when you give colors and no color. Material slots last through edit_mesh; vertex colours last only while an edit keeps the vertex count. subdivide: 1 or 2 smooths it (Catmull-Clark: a box of six quads becomes a rounded pebble, a few quads become a soft organic shape; each level about four times the faces, checked against the caps). Edit it afterwards with edit_mesh, or send new vertices with update_mesh. Returns the uuid.\nTake a screenshot after each change to check your work.",
|
|
1302
1342
|
"inputSchema": {
|
|
1303
1343
|
"type": "object",
|
|
1304
1344
|
"properties": {
|
|
@@ -1345,15 +1385,31 @@
|
|
|
1345
1385
|
"colors": {
|
|
1346
1386
|
"type": "array",
|
|
1347
1387
|
"items": {
|
|
1348
|
-
"
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1388
|
+
"anyOf": [
|
|
1389
|
+
{
|
|
1390
|
+
"type": "array",
|
|
1391
|
+
"items": {
|
|
1392
|
+
"type": "number"
|
|
1393
|
+
},
|
|
1394
|
+
"minItems": 3,
|
|
1395
|
+
"maxItems": 3
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"type": "string",
|
|
1399
|
+
"description": "#rrggbb"
|
|
1400
|
+
}
|
|
1401
|
+
]
|
|
1354
1402
|
},
|
|
1355
1403
|
"maxItems": 20000,
|
|
1356
|
-
"description": "one [r, g, b] (0-1
|
|
1404
|
+
"description": "one colour per vertex, in the order of vertices: [r, g, b] (0-1, sRGB unless colorSpace is \"linear\") or \"#rrggbb\""
|
|
1405
|
+
},
|
|
1406
|
+
"colorSpace": {
|
|
1407
|
+
"type": "string",
|
|
1408
|
+
"enum": [
|
|
1409
|
+
"srgb",
|
|
1410
|
+
"linear"
|
|
1411
|
+
],
|
|
1412
|
+
"description": "how [r, g, b] colors numbers are meant: \"srgb\" (default — like a colour picker, as material colours are) or \"linear\"; hex is always sRGB"
|
|
1357
1413
|
},
|
|
1358
1414
|
"materials": {
|
|
1359
1415
|
"type": "array",
|
|
@@ -1446,7 +1502,7 @@
|
|
|
1446
1502
|
},
|
|
1447
1503
|
"parentUuid": {
|
|
1448
1504
|
"type": "string",
|
|
1449
|
-
"description": "uuid of a group to nest under — position / rotation / scale AND the shape's own points are then LOCAL to
|
|
1505
|
+
"description": "uuid of a group (or any object, not a light or camera) to nest under — position / rotation / scale AND the shape's own points are then LOCAL to it (no position = its origin), so the part moves and turns with it. A uuid that is not in the scene is an error and nothing is made"
|
|
1450
1506
|
},
|
|
1451
1507
|
"physics": {
|
|
1452
1508
|
"type": "string",
|
|
@@ -1477,6 +1533,61 @@
|
|
|
1477
1533
|
"openWorldHint": false
|
|
1478
1534
|
}
|
|
1479
1535
|
},
|
|
1536
|
+
{
|
|
1537
|
+
"name": "duplicate",
|
|
1538
|
+
"title": "Copy or mirror an object",
|
|
1539
|
+
"description": "Copy an object you built (its children, materials, behaviour and physics come along; nothing is resent): count copies stepping by offset [x, y, z] metres in its parent's space (default: a row to the side), or mirror \"x\"|\"y\"|\"z\" = the mirror image across that plane through the PARENT's centre (in a group: its centre line — a left arm or ear becomes the right one; at the scene root: the world's), its triangles re-wound so normals stay right (Box and even-segment round shapes keep their params). parentUuid nests the copies (they keep their place in the world). One undo step; everyone sees it. For tens to hundreds of copies spread over a terrain or mesh, use scatter with source: <uuid>.\nTake a screenshot after each change to check your work.",
|
|
1540
|
+
"inputSchema": {
|
|
1541
|
+
"type": "object",
|
|
1542
|
+
"properties": {
|
|
1543
|
+
"uuid": {
|
|
1544
|
+
"type": "string",
|
|
1545
|
+
"description": "the object to copy"
|
|
1546
|
+
},
|
|
1547
|
+
"count": {
|
|
1548
|
+
"type": "integer",
|
|
1549
|
+
"minimum": 1,
|
|
1550
|
+
"maximum": 50,
|
|
1551
|
+
"description": "copies (default 1)"
|
|
1552
|
+
},
|
|
1553
|
+
"offset": {
|
|
1554
|
+
"type": "array",
|
|
1555
|
+
"items": {
|
|
1556
|
+
"type": "number"
|
|
1557
|
+
},
|
|
1558
|
+
"minItems": 3,
|
|
1559
|
+
"maxItems": 3,
|
|
1560
|
+
"description": "[x, y, z] metres between copies in the parent's space; with mirror it moves the mirror image (default [0, 0, 0])"
|
|
1561
|
+
},
|
|
1562
|
+
"mirror": {
|
|
1563
|
+
"type": "string",
|
|
1564
|
+
"enum": [
|
|
1565
|
+
"x",
|
|
1566
|
+
"y",
|
|
1567
|
+
"z"
|
|
1568
|
+
],
|
|
1569
|
+
"description": "the axis the mirror flips: x makes a left part the right one"
|
|
1570
|
+
},
|
|
1571
|
+
"parentUuid": {
|
|
1572
|
+
"type": "string",
|
|
1573
|
+
"description": "a group (or any object) to put the copies in"
|
|
1574
|
+
},
|
|
1575
|
+
"name": {
|
|
1576
|
+
"type": "string",
|
|
1577
|
+
"description": "the copies' name (numbered when several)"
|
|
1578
|
+
}
|
|
1579
|
+
},
|
|
1580
|
+
"required": [
|
|
1581
|
+
"uuid"
|
|
1582
|
+
]
|
|
1583
|
+
},
|
|
1584
|
+
"annotations": {
|
|
1585
|
+
"title": "Copy or mirror an object",
|
|
1586
|
+
"readOnlyHint": false,
|
|
1587
|
+
"destructiveHint": false,
|
|
1588
|
+
"openWorldHint": false
|
|
1589
|
+
}
|
|
1590
|
+
},
|
|
1480
1591
|
{
|
|
1481
1592
|
"name": "update_mesh",
|
|
1482
1593
|
"title": "Change a mesh made from data",
|
|
@@ -1535,14 +1646,31 @@
|
|
|
1535
1646
|
"colors": {
|
|
1536
1647
|
"type": "array",
|
|
1537
1648
|
"items": {
|
|
1538
|
-
"
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1649
|
+
"anyOf": [
|
|
1650
|
+
{
|
|
1651
|
+
"type": "array",
|
|
1652
|
+
"items": {
|
|
1653
|
+
"type": "number"
|
|
1654
|
+
},
|
|
1655
|
+
"minItems": 3,
|
|
1656
|
+
"maxItems": 3
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"type": "string",
|
|
1660
|
+
"description": "#rrggbb"
|
|
1661
|
+
}
|
|
1662
|
+
]
|
|
1544
1663
|
},
|
|
1545
|
-
"maxItems": 20000
|
|
1664
|
+
"maxItems": 20000,
|
|
1665
|
+
"description": "as create_mesh: [r, g, b] (sRGB unless colorSpace is \"linear\") or \"#rrggbb\" per vertex"
|
|
1666
|
+
},
|
|
1667
|
+
"colorSpace": {
|
|
1668
|
+
"type": "string",
|
|
1669
|
+
"enum": [
|
|
1670
|
+
"srgb",
|
|
1671
|
+
"linear"
|
|
1672
|
+
],
|
|
1673
|
+
"description": "how [r, g, b] colors numbers are meant: \"srgb\" (default — like a colour picker, as material colours are) or \"linear\"; hex is always sRGB"
|
|
1546
1674
|
},
|
|
1547
1675
|
"faceMaterials": {
|
|
1548
1676
|
"type": "array",
|
|
@@ -1630,6 +1758,156 @@
|
|
|
1630
1758
|
"openWorldHint": false
|
|
1631
1759
|
}
|
|
1632
1760
|
},
|
|
1761
|
+
{
|
|
1762
|
+
"name": "create_text",
|
|
1763
|
+
"title": "Add 3D text",
|
|
1764
|
+
"description": "Add a 3D text object: a sign, a title, a label. Flat letters by default; solid (extruded) letters with depth and a bevel when solid: true or depth / bevel are given. Fonts: bundled, any Google Fonts family by name, or a Library font {asset}. Solid text holds up to 300 characters (80 on a phone or headset), flat 2000. Returns its uuid; change it later with set_geometry params.\nTake a screenshot after each change to check your work.",
|
|
1765
|
+
"inputSchema": {
|
|
1766
|
+
"type": "object",
|
|
1767
|
+
"properties": {
|
|
1768
|
+
"text": {
|
|
1769
|
+
"type": "string",
|
|
1770
|
+
"description": "the words; \\n breaks a line"
|
|
1771
|
+
},
|
|
1772
|
+
"font": {
|
|
1773
|
+
"description": "a bundled font (sans, serif, mono, rounded, display — or its name: Noto Sans, Noto Serif, IBM Plex Mono, Nunito, Press Start 2P, IBM Plex Sans), ANY Google Fonts family name (fetched once, kept in the Library), or {asset: \"<hash>\"} for a Library font"
|
|
1774
|
+
},
|
|
1775
|
+
"size": {
|
|
1776
|
+
"type": "number",
|
|
1777
|
+
"description": "letter height (the em) in metres, default 0.4"
|
|
1778
|
+
},
|
|
1779
|
+
"solid": {
|
|
1780
|
+
"type": "boolean",
|
|
1781
|
+
"description": "true = solid 3D letters (extruded); false = flat. depth or bevel imply solid"
|
|
1782
|
+
},
|
|
1783
|
+
"depth": {
|
|
1784
|
+
"type": "number",
|
|
1785
|
+
"description": "solid: thickness in metres (default 0.1)"
|
|
1786
|
+
},
|
|
1787
|
+
"bevel": {
|
|
1788
|
+
"description": "solid: bevel width in metres, false for none, or {size, thickness, segments}"
|
|
1789
|
+
},
|
|
1790
|
+
"align": {
|
|
1791
|
+
"type": "string",
|
|
1792
|
+
"enum": [
|
|
1793
|
+
"left",
|
|
1794
|
+
"center",
|
|
1795
|
+
"right",
|
|
1796
|
+
"justify"
|
|
1797
|
+
]
|
|
1798
|
+
},
|
|
1799
|
+
"maxWidth": {
|
|
1800
|
+
"type": "number",
|
|
1801
|
+
"description": "wrap lines at this width in metres; 0 = no wrapping"
|
|
1802
|
+
},
|
|
1803
|
+
"anchor": {
|
|
1804
|
+
"type": "string",
|
|
1805
|
+
"enum": [
|
|
1806
|
+
"top-left",
|
|
1807
|
+
"top-center",
|
|
1808
|
+
"top-right",
|
|
1809
|
+
"middle-left",
|
|
1810
|
+
"middle-center",
|
|
1811
|
+
"middle-right",
|
|
1812
|
+
"bottom-left",
|
|
1813
|
+
"bottom-center",
|
|
1814
|
+
"bottom-right"
|
|
1815
|
+
],
|
|
1816
|
+
"description": "where the block sits around its position (default middle-center)"
|
|
1817
|
+
},
|
|
1818
|
+
"lineHeight": {
|
|
1819
|
+
"type": "number",
|
|
1820
|
+
"description": "in ems, default 1.2"
|
|
1821
|
+
},
|
|
1822
|
+
"letterSpacing": {
|
|
1823
|
+
"type": "number",
|
|
1824
|
+
"description": "extra space between letters, in ems"
|
|
1825
|
+
},
|
|
1826
|
+
"bold": {
|
|
1827
|
+
"type": "boolean",
|
|
1828
|
+
"description": "flat Noto Sans and Google fonts"
|
|
1829
|
+
},
|
|
1830
|
+
"italic": {
|
|
1831
|
+
"type": "boolean"
|
|
1832
|
+
},
|
|
1833
|
+
"color": {
|
|
1834
|
+
"type": "string",
|
|
1835
|
+
"description": "hex #rrggbb (the face colour of solid text)"
|
|
1836
|
+
},
|
|
1837
|
+
"sideColor": {
|
|
1838
|
+
"type": "string",
|
|
1839
|
+
"description": "solid: hex colour of the sides (default a shade of color)"
|
|
1840
|
+
},
|
|
1841
|
+
"emissive": {
|
|
1842
|
+
"type": "number",
|
|
1843
|
+
"description": "solid: glow 0..4"
|
|
1844
|
+
},
|
|
1845
|
+
"metalness": {
|
|
1846
|
+
"type": "number"
|
|
1847
|
+
},
|
|
1848
|
+
"roughness": {
|
|
1849
|
+
"type": "number"
|
|
1850
|
+
},
|
|
1851
|
+
"quality": {
|
|
1852
|
+
"type": "string",
|
|
1853
|
+
"enum": [
|
|
1854
|
+
"low",
|
|
1855
|
+
"medium",
|
|
1856
|
+
"high"
|
|
1857
|
+
],
|
|
1858
|
+
"description": "solid: curve smoothness (triangles)"
|
|
1859
|
+
},
|
|
1860
|
+
"outline": {
|
|
1861
|
+
"type": "number",
|
|
1862
|
+
"description": "flat: outline width in ems (0..0.3)"
|
|
1863
|
+
},
|
|
1864
|
+
"name": {
|
|
1865
|
+
"type": "string"
|
|
1866
|
+
},
|
|
1867
|
+
"position": {
|
|
1868
|
+
"type": "array",
|
|
1869
|
+
"items": {
|
|
1870
|
+
"type": "number"
|
|
1871
|
+
},
|
|
1872
|
+
"minItems": 3,
|
|
1873
|
+
"maxItems": 3,
|
|
1874
|
+
"description": "world point, metres (default: in front of the camera)"
|
|
1875
|
+
},
|
|
1876
|
+
"rotation": {
|
|
1877
|
+
"type": "array",
|
|
1878
|
+
"items": {
|
|
1879
|
+
"type": "number"
|
|
1880
|
+
},
|
|
1881
|
+
"minItems": 3,
|
|
1882
|
+
"maxItems": 3,
|
|
1883
|
+
"description": "Euler radians"
|
|
1884
|
+
}
|
|
1885
|
+
},
|
|
1886
|
+
"required": [
|
|
1887
|
+
"text"
|
|
1888
|
+
]
|
|
1889
|
+
},
|
|
1890
|
+
"annotations": {
|
|
1891
|
+
"title": "Add 3D text",
|
|
1892
|
+
"readOnlyHint": false,
|
|
1893
|
+
"destructiveHint": false,
|
|
1894
|
+
"openWorldHint": true
|
|
1895
|
+
}
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
"name": "list_fonts",
|
|
1899
|
+
"title": "List fonts for 3D text",
|
|
1900
|
+
"description": "The fonts 3D text can use: the bundled ones, the Library's (uploads and Google fonts, with their licences), and which the scene's texts use. Read only.",
|
|
1901
|
+
"inputSchema": {
|
|
1902
|
+
"type": "object",
|
|
1903
|
+
"properties": {}
|
|
1904
|
+
},
|
|
1905
|
+
"annotations": {
|
|
1906
|
+
"title": "List fonts for 3D text",
|
|
1907
|
+
"readOnlyHint": true,
|
|
1908
|
+
"openWorldHint": false
|
|
1909
|
+
}
|
|
1910
|
+
},
|
|
1633
1911
|
{
|
|
1634
1912
|
"name": "set_material",
|
|
1635
1913
|
"title": "Change materials and textures",
|
|
@@ -1977,7 +2255,7 @@
|
|
|
1977
2255
|
{
|
|
1978
2256
|
"name": "describe_shader_nodes",
|
|
1979
2257
|
"title": "Look up shader node types",
|
|
1980
|
-
"description": "The shader node catalog: each type with what it does, its params (which become uniforms), inputs and outputs.",
|
|
2258
|
+
"description": "The shader node catalog: each type with what it does, its params (which become uniforms), inputs and outputs. UV warps include polarCoordinates, twirl and rotateUV; the glsl node keeps the type wired into a, b and c (float, vec2, vec3, vec4) and returns its declared type.",
|
|
1981
2259
|
"inputSchema": {
|
|
1982
2260
|
"type": "object",
|
|
1983
2261
|
"properties": {
|
|
@@ -2006,7 +2284,7 @@
|
|
|
2006
2284
|
{
|
|
2007
2285
|
"name": "set_post",
|
|
2008
2286
|
"title": "Change the post effects",
|
|
2009
|
-
"description": "The scene's post effects (bloom, huesaturation, brightnesscontrast, tonemapping, vignette, grain, chromaticaberration, ao, lut, pixelation, scanlines, dotscreen, smaa; get_post lists every param). effects: [{kind, params, enabled, at, remove}], matched to what is there by id or kind, so repeating a call does not stack a second bloom; replace: true drops the rest; the stack order is the order of effect. This changes the whole scene's look: the first call returns needsConfirm and the host is asked; repeat it with confirmId. One undo step.\nTake a screenshot after each change to check your work.",
|
|
2287
|
+
"description": "The scene's post effects (bloom, huesaturation, brightnesscontrast, tonemapping, vignette, grain, chromaticaberration, lensflare, godrays, volumetricfog, ao, lut, pixelation, scanlines, dotscreen, antialias {method: traa | smaa} — it replaces the older smaa; get_post lists every param). effects: [{kind, params, enabled, at, remove}], matched to what is there by id or kind, so repeating a call does not stack a second bloom; replace: true drops the rest; the stack order is the order of effect. This changes the whole scene's look: the first call returns needsConfirm and the host is asked; repeat it with confirmId. One undo step. The answer says shownHere: false with a reason when this screen does not draw post effects (reason \"quality tier\" = the device turned them off to keep its frame rate, usual on a phone: the scene keeps them; say so, and offer to ask with set_quality).\nTake a screenshot after each change to check your work.",
|
|
2010
2288
|
"inputSchema": {
|
|
2011
2289
|
"type": "object",
|
|
2012
2290
|
"properties": {
|
|
@@ -2076,42 +2354,59 @@
|
|
|
2076
2354
|
}
|
|
2077
2355
|
},
|
|
2078
2356
|
{
|
|
2079
|
-
"name": "
|
|
2080
|
-
"title": "
|
|
2081
|
-
"description": "
|
|
2357
|
+
"name": "set_look_preset",
|
|
2358
|
+
"title": "Set look preset",
|
|
2359
|
+
"description": "A pro look in one step: preset product (Product shot: studio light, clean AO, neutral tone mapping), cinematic (low sun, volumetric fog, god rays, lens flare, film grain, ACES) or stylised (bright sky, punchy colour, AgX). Sets the sky + light, exposure, tone mapping and the post effects together as ONE undo step, saved in the scene; each device draws its own share (a phone marches less fog, a headset leaves fog / god rays / lens flare out). Replaces the scene's post effects. Changes the whole scene's look: the first call returns needsConfirm and the host is asked; repeat it with confirmId.\nTake a screenshot after each change to check your work.",
|
|
2082
2360
|
"inputSchema": {
|
|
2083
2361
|
"type": "object",
|
|
2084
2362
|
"properties": {
|
|
2085
|
-
"
|
|
2363
|
+
"preset": {
|
|
2086
2364
|
"type": "string",
|
|
2087
|
-
"
|
|
2365
|
+
"enum": [
|
|
2366
|
+
"product",
|
|
2367
|
+
"cinematic",
|
|
2368
|
+
"stylised"
|
|
2369
|
+
]
|
|
2370
|
+
},
|
|
2371
|
+
"confirmId": {
|
|
2372
|
+
"type": "string",
|
|
2373
|
+
"description": "the id a needsConfirm answer gave: repeat the call with it to get the host's answer and apply"
|
|
2374
|
+
},
|
|
2375
|
+
"wait": {
|
|
2376
|
+
"type": "number",
|
|
2377
|
+
"description": "with confirmId: seconds to wait for the answer (up to 60)"
|
|
2088
2378
|
}
|
|
2089
|
-
}
|
|
2379
|
+
},
|
|
2380
|
+
"required": [
|
|
2381
|
+
"preset"
|
|
2382
|
+
]
|
|
2090
2383
|
},
|
|
2091
2384
|
"annotations": {
|
|
2092
|
-
"title": "
|
|
2093
|
-
"readOnlyHint":
|
|
2385
|
+
"title": "Set look preset",
|
|
2386
|
+
"readOnlyHint": false,
|
|
2387
|
+
"destructiveHint": true,
|
|
2094
2388
|
"openWorldHint": false
|
|
2095
2389
|
}
|
|
2096
2390
|
},
|
|
2097
2391
|
{
|
|
2098
|
-
"name": "
|
|
2099
|
-
"title": "
|
|
2100
|
-
"description": "
|
|
2392
|
+
"name": "set_quality",
|
|
2393
|
+
"title": "Ask for higher quality on this device",
|
|
2394
|
+
"description": "Ask the person to raise THIS device's quality (their Settings ▸ Scene ▸ Performance ▸ Quality preset). Use it when set_post / get_post / screenshot say shownHere false or postEffects \"unavailable\" with reason \"quality tier\": a phone turns post effects off to keep its frame rate. The person gets a card on their own screen (Allow / Keep) and answers; nothing changes until they allow, nothing changes on anyone else's device, nothing goes into the scene. The first call returns needsConfirm; call again with confirmId (and wait) for the answer. level: high (full quality, post effects on), medium, auto (the device decides), restore (put back what it was before you asked; no question). Suggest it out loud first: \"Your phone hides the glow to stay smooth; shall I ask it for high quality?\"\nTake a screenshot after each change to check your work.",
|
|
2101
2395
|
"inputSchema": {
|
|
2102
2396
|
"type": "object",
|
|
2103
2397
|
"properties": {
|
|
2104
|
-
"
|
|
2105
|
-
"type": "string"
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2398
|
+
"level": {
|
|
2399
|
+
"type": "string",
|
|
2400
|
+
"enum": [
|
|
2401
|
+
"high",
|
|
2402
|
+
"medium",
|
|
2403
|
+
"auto",
|
|
2404
|
+
"restore"
|
|
2405
|
+
]
|
|
2112
2406
|
},
|
|
2113
|
-
"
|
|
2114
|
-
"type": "string"
|
|
2407
|
+
"reason": {
|
|
2408
|
+
"type": "string",
|
|
2409
|
+
"description": "a few words for the card, e.g. \"so the portal glow shows\""
|
|
2115
2410
|
},
|
|
2116
2411
|
"confirmId": {
|
|
2117
2412
|
"type": "string",
|
|
@@ -2124,7 +2419,116 @@
|
|
|
2124
2419
|
}
|
|
2125
2420
|
},
|
|
2126
2421
|
"annotations": {
|
|
2127
|
-
"title": "
|
|
2422
|
+
"title": "Ask for higher quality on this device",
|
|
2423
|
+
"readOnlyHint": false,
|
|
2424
|
+
"destructiveHint": true,
|
|
2425
|
+
"openWorldHint": false
|
|
2426
|
+
}
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
"name": "bake_light",
|
|
2430
|
+
"title": "Bake light",
|
|
2431
|
+
"description": "Bake light (Pro look): soft shadows in corners (AO) and light bouncing off walls, worked out once for every object that does not move (no physics body that moves, no flow or clip animation) and saved with the scene — everyone sees it, it undoes as one step. do: bake (the default; runs on this device, takes seconds; asks the host first like set_post), status (read: baked?, stale = things moved since, notes such as objects with overlapping UVs that got AO only), cancel, clear (remove it), strength (light 0-3, ao 0-1). quality: draft, normal, high. Bake AFTER the layout is final; bake again when status says stale. wait: seconds to wait for the result (default 60, max 120).\nTake a screenshot after each change to check your work.",
|
|
2432
|
+
"inputSchema": {
|
|
2433
|
+
"type": "object",
|
|
2434
|
+
"properties": {
|
|
2435
|
+
"do": {
|
|
2436
|
+
"type": "string",
|
|
2437
|
+
"enum": [
|
|
2438
|
+
"bake",
|
|
2439
|
+
"status",
|
|
2440
|
+
"cancel",
|
|
2441
|
+
"clear",
|
|
2442
|
+
"strength"
|
|
2443
|
+
]
|
|
2444
|
+
},
|
|
2445
|
+
"quality": {
|
|
2446
|
+
"type": "string",
|
|
2447
|
+
"enum": [
|
|
2448
|
+
"draft",
|
|
2449
|
+
"normal",
|
|
2450
|
+
"high"
|
|
2451
|
+
]
|
|
2452
|
+
},
|
|
2453
|
+
"light": {
|
|
2454
|
+
"type": "number",
|
|
2455
|
+
"minimum": 0,
|
|
2456
|
+
"maximum": 3,
|
|
2457
|
+
"description": "do strength: bounce light strength (1 = as baked)"
|
|
2458
|
+
},
|
|
2459
|
+
"ao": {
|
|
2460
|
+
"type": "number",
|
|
2461
|
+
"minimum": 0,
|
|
2462
|
+
"maximum": 1,
|
|
2463
|
+
"description": "do strength: corner shadow strength"
|
|
2464
|
+
},
|
|
2465
|
+
"confirmId": {
|
|
2466
|
+
"type": "string",
|
|
2467
|
+
"description": "the id a needsConfirm answer gave: repeat the call with it to get the host's answer and apply"
|
|
2468
|
+
},
|
|
2469
|
+
"wait": {
|
|
2470
|
+
"type": "number",
|
|
2471
|
+
"description": "with confirmId: seconds to wait for the answer (up to 60)"
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
},
|
|
2475
|
+
"annotations": {
|
|
2476
|
+
"title": "Bake light",
|
|
2477
|
+
"readOnlyHint": false,
|
|
2478
|
+
"destructiveHint": true,
|
|
2479
|
+
"openWorldHint": false
|
|
2480
|
+
}
|
|
2481
|
+
},
|
|
2482
|
+
{
|
|
2483
|
+
"name": "get_post",
|
|
2484
|
+
"title": "Read the post effects",
|
|
2485
|
+
"description": "The look stack as it is (effects with ids and params) and every effect kind with its params and ranges.",
|
|
2486
|
+
"inputSchema": {
|
|
2487
|
+
"type": "object",
|
|
2488
|
+
"properties": {
|
|
2489
|
+
"camera": {
|
|
2490
|
+
"type": "string",
|
|
2491
|
+
"description": "a camera's own look instead of the scene's"
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2495
|
+
"annotations": {
|
|
2496
|
+
"title": "Read the post effects",
|
|
2497
|
+
"readOnlyHint": true,
|
|
2498
|
+
"openWorldHint": false
|
|
2499
|
+
}
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"name": "create_post_graph",
|
|
2503
|
+
"title": "Add a custom post effect",
|
|
2504
|
+
"description": "A custom post effect: a preset, or a shader graph as text ending at a \"postOutput\" node (describe_shader_nodes domain post), added to the look. Changes the whole scene's look, so it asks the host first like set_post. Compiler errors come back in the result.\nTake a screenshot after each change to check your work.",
|
|
2505
|
+
"inputSchema": {
|
|
2506
|
+
"type": "object",
|
|
2507
|
+
"properties": {
|
|
2508
|
+
"preset": {
|
|
2509
|
+
"type": "string"
|
|
2510
|
+
},
|
|
2511
|
+
"text": {
|
|
2512
|
+
"type": "string"
|
|
2513
|
+
},
|
|
2514
|
+
"name": {
|
|
2515
|
+
"type": "string"
|
|
2516
|
+
},
|
|
2517
|
+
"camera": {
|
|
2518
|
+
"type": "string"
|
|
2519
|
+
},
|
|
2520
|
+
"confirmId": {
|
|
2521
|
+
"type": "string",
|
|
2522
|
+
"description": "the id a needsConfirm answer gave: repeat the call with it to get the host's answer and apply"
|
|
2523
|
+
},
|
|
2524
|
+
"wait": {
|
|
2525
|
+
"type": "number",
|
|
2526
|
+
"description": "with confirmId: seconds to wait for the answer (up to 60)"
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
},
|
|
2530
|
+
"annotations": {
|
|
2531
|
+
"title": "Add a custom post effect",
|
|
2128
2532
|
"readOnlyHint": false,
|
|
2129
2533
|
"destructiveHint": false,
|
|
2130
2534
|
"openWorldHint": false
|
|
@@ -2624,13 +3028,13 @@
|
|
|
2624
3028
|
{
|
|
2625
3029
|
"name": "set_sky",
|
|
2626
3030
|
"title": "Change the sky and fog",
|
|
2627
|
-
"description": "The sky and the air: a look preset (studio, daylight, sunset, night, classic, clearsky, meadow, sunrise, starlight, photostudio), a sky image by name (clearsky, meadow, sunrise, starlight, photostudio; or {hash} of an HDR in the library — never a URL) with rotation, intensity, blur and Sky quality (auto / standard / high / max, plus a minimum), a background colour or {top, bottom} gradient, fog ({color, near, far} in metres, or {color, density}; null = none) and exposure. \"Make it night\": preset night or hdri starlight + a dark fog. Changes the whole scene's look, so the host is asked first: it answers needsConfirm, then repeat with confirmId. One undo step.\nTake a screenshot after each change to check your work.",
|
|
3031
|
+
"description": "The sky and the air: a look preset (studio, daylight, sunset, night, classic, clearsky, meadow, sunrise, starlight, photostudio, product, cinematic, stylised), a sky image by name (clearsky, meadow, sunrise, starlight, photostudio; a search_assets HDRI id \"cc0:polyhaven/<id>\" (fetched into the library once) or \"lib:<hash>\"; or {hash} of an HDR in the library — upload your own .hdr / .exr with assets upload; never a URL) with rotation, intensity, blur and Sky quality (auto / standard / high / max, plus a minimum), a background colour or {top, bottom} gradient, fog ({color, near, far} in metres, or {color, density}; null = none) and exposure. \"Make it night\": preset night or hdri starlight + a dark fog. Changes the whole scene's look, so the host is asked first: it answers needsConfirm, then repeat with confirmId. One undo step.\nTake a screenshot after each change to check your work.",
|
|
2628
3032
|
"inputSchema": {
|
|
2629
3033
|
"type": "object",
|
|
2630
3034
|
"properties": {
|
|
2631
3035
|
"preset": {
|
|
2632
3036
|
"type": "string",
|
|
2633
|
-
"description": "studio, daylight, sunset, night, classic, clearsky, meadow, sunrise, starlight, photostudio"
|
|
3037
|
+
"description": "studio, daylight, sunset, night, classic, clearsky, meadow, sunrise, starlight, photostudio, product, cinematic, stylised"
|
|
2634
3038
|
},
|
|
2635
3039
|
"hdri": {
|
|
2636
3040
|
"type": [
|
|
@@ -2638,7 +3042,7 @@
|
|
|
2638
3042
|
"object",
|
|
2639
3043
|
"null"
|
|
2640
3044
|
],
|
|
2641
|
-
"description": "a sky name (clearsky, meadow, sunrise, starlight, photostudio), null for none, or {name | hash, rotation (degrees), intensity 0-4, blur 0-1, background (false = light only), quality, minQuality}",
|
|
3045
|
+
"description": "a sky name (clearsky, meadow, sunrise, starlight, photostudio), a search_assets HDRI id (\"cc0:polyhaven/<id>\": fetched into the library once, CC0, credited) or \"lib:<hash>\", null for none, or {name | hash, rotation (degrees), intensity 0-4, blur 0-1, background (false = light only), quality, minQuality}. A sky file you hold yourself: assets upload gives its hash",
|
|
2642
3046
|
"properties": {
|
|
2643
3047
|
"name": {
|
|
2644
3048
|
"type": "string"
|
|
@@ -3016,7 +3420,7 @@
|
|
|
3016
3420
|
{
|
|
3017
3421
|
"name": "search_assets",
|
|
3018
3422
|
"title": "Find assets",
|
|
3019
|
-
"description": "Find assets to build with, by words and kind: models and prefabs to place, sounds, images, CC0 materials and HDRIs. Searches the shared library, the
|
|
3423
|
+
"description": "Find assets to build with, by words and kind: models and prefabs to place, sounds, images, CC0 materials and HDRIs. Searches the shared library, the packs (models, and the sounds of the sound packs: pack:<name>/<file>), your prefabs and Poly Haven. Each result has an id, name, kind, source, licence, size when known, and how to use it. Read-only.",
|
|
3020
3424
|
"inputSchema": {
|
|
3021
3425
|
"type": "object",
|
|
3022
3426
|
"properties": {
|
|
@@ -3179,7 +3583,7 @@
|
|
|
3179
3583
|
{
|
|
3180
3584
|
"name": "create_particles",
|
|
3181
3585
|
"title": "Add particles",
|
|
3182
|
-
"description": "Particles by preset name: sparkles, fire, smoke, dust, confetti, sparks, trail, wisps, fireflies, rain, snow. Without object it places
|
|
3586
|
+
"description": "Particles by preset name: sparkles, fire, smoke, dust, confetti, sparks, trail, wisps, fireflies, rain, snow. Without object it places an invisible emitter (an empty group, nothing drawn but the particles) at position (rain and snow hang at cloud height over it); with object it attaches to that object (a torch, a campfire log). overrides tune any field (count, lifetime, speed, gravity, sizeStart, colorStart, colorEnd, opacity, …). remove: true takes them off. One undo step.\nTake a screenshot after each change to check your work.",
|
|
3183
3587
|
"inputSchema": {
|
|
3184
3588
|
"type": "object",
|
|
3185
3589
|
"properties": {
|
|
@@ -3233,7 +3637,7 @@
|
|
|
3233
3637
|
{
|
|
3234
3638
|
"name": "scatter",
|
|
3235
3639
|
"title": "Scatter over a surface",
|
|
3236
|
-
"description": "Scatter many instances over a terrain or any mesh (a forest on hills, rocks on a beach, flowers on a slope): asset = a primitive (Box, Sphere, Cone, Cylinder, Capsule, Dodecahedron) or a model id from search_assets, or assets = up to 8 mixed evenly. density per m² (or count), scale range, rules {slope: [min°, max°], height: [min, max] m, layer: {i, min}} keep them where they belong. Cheap instancing, seeded (the same on every peer). Returns the set id; remove: <set id> deletes a set. One undo step.\nTake a screenshot after each change to check your work.",
|
|
3640
|
+
"description": "Scatter many instances over a terrain or any mesh (a forest on hills, rocks on a beach, flowers on a slope): asset = a primitive (Box, Sphere, Cone, Cylinder, Capsule, Dodecahedron) or a model id from search_assets, or assets = up to 8 mixed evenly. density per m² (or count), scale range, rules {slope: [min°, max°], height: [min, max] m, layer: {i, min}} keep them where they belong. Cheap instancing, seeded (the same on every peer; seed picks another layout). avoid (or rules.avoid) = up to 16 places nothing lands on: an object uuid (its footprint: a path, a house, a portal), {uuid, radius} or {position, radius} (a clear circle, metres). All the assets of one call make ONE set (id names it). source = the uuid of an object you built: up to 200 REAL copies of it (editable, with its children, materials and behaviour) instead of instances — for one or a few copies in a row or mirrored, use duplicate. Returns the set id (or the copies' uuids); remove: <set id> deletes a set. One undo step.\nTake a screenshot after each change to check your work.",
|
|
3237
3641
|
"inputSchema": {
|
|
3238
3642
|
"type": "object",
|
|
3239
3643
|
"properties": {
|
|
@@ -3272,10 +3676,50 @@
|
|
|
3272
3676
|
},
|
|
3273
3677
|
"rules": {
|
|
3274
3678
|
"type": "object",
|
|
3275
|
-
"description": "{slope: [0, 25] degrees from flat, height: [min, max] metres, layer: {i: paint layer 0-3, min: 0-1}}"
|
|
3679
|
+
"description": "{slope: [0, 25] degrees from flat, height: [min, max] metres, layer: {i: paint layer 0-3, min: 0-1}, avoid: the same list as avoid}"
|
|
3276
3680
|
},
|
|
3277
3681
|
"seed": {
|
|
3278
|
-
"type": "integer"
|
|
3682
|
+
"type": "integer",
|
|
3683
|
+
"description": "the same seed puts them in the same spots; another seed, another layout"
|
|
3684
|
+
},
|
|
3685
|
+
"source": {
|
|
3686
|
+
"type": "string",
|
|
3687
|
+
"description": "the uuid of an object in the scene: scatter real copies of it (max 200) instead of asset"
|
|
3688
|
+
},
|
|
3689
|
+
"avoid": {
|
|
3690
|
+
"type": "array",
|
|
3691
|
+
"maxItems": 16,
|
|
3692
|
+
"items": {
|
|
3693
|
+
"anyOf": [
|
|
3694
|
+
{
|
|
3695
|
+
"type": "string"
|
|
3696
|
+
},
|
|
3697
|
+
{
|
|
3698
|
+
"type": "object",
|
|
3699
|
+
"properties": {
|
|
3700
|
+
"uuid": {
|
|
3701
|
+
"type": "string"
|
|
3702
|
+
},
|
|
3703
|
+
"position": {
|
|
3704
|
+
"type": "array",
|
|
3705
|
+
"items": {
|
|
3706
|
+
"type": "number"
|
|
3707
|
+
},
|
|
3708
|
+
"minItems": 3,
|
|
3709
|
+
"maxItems": 3
|
|
3710
|
+
},
|
|
3711
|
+
"radius": {
|
|
3712
|
+
"type": "number"
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
]
|
|
3717
|
+
},
|
|
3718
|
+
"description": "places to keep clear: an object uuid (its footprint), {uuid, radius} or {position, radius} (a circle, metres)"
|
|
3719
|
+
},
|
|
3720
|
+
"id": {
|
|
3721
|
+
"type": "string",
|
|
3722
|
+
"description": "a name for the set (default from the first asset); remove takes it"
|
|
3279
3723
|
},
|
|
3280
3724
|
"tint": {
|
|
3281
3725
|
"type": "number",
|
|
@@ -3314,7 +3758,7 @@
|
|
|
3314
3758
|
{
|
|
3315
3759
|
"name": "terrain",
|
|
3316
3760
|
"title": "Make or shape terrain",
|
|
3317
|
-
"description": "Make or change a terrain. Without uuid it makes one (size metres, at position); with uuid it changes that one. Shape by noise: height (metres), detail (0.005-0.6), octaves, ridged, warp, edges (flat|island|bowl), seed. Sculpt with ops [{op: raise|lower|smooth|flatten, at: [x, z] from the terrain's centre, radius, strength 0-1, height (metres, raise/lower), passes}] and paint with {op: \"paint\", at, radius, layer 0-3, strength}. layers: up to 4 {color, texture (a library hash or a pattern name like grass, sand, stone), tiling}. One undo step.\nTake a screenshot after each change to check your work.",
|
|
3761
|
+
"description": "Make or change a terrain. Without uuid it makes one (size metres, at position); with uuid it changes that one. Shape by noise: height (the highest peak, metres — the answer says the peak it got), detail (0.005-0.6), octaves, ridged, warp, edges (flat|island|bowl: island sinks the rim to 0 so it rises out of water; bowl raises the rim), seed; amplitude is the raw noise scale if you want it. Sculpt with ops [{op: raise|lower|smooth|flatten, at: [x, z] from the terrain's centre, radius, strength 0-1, height (metres, raise/lower), passes}] and paint with {op: \"paint\", at, radius, layer 0-3, strength}. layers: up to 4 {color, texture (a library hash or a pattern name like grass, sand, stone), tiling} — layer 0 covers the ground until you paint the others; paintBy: \"height\" paints them for you, layer 0 in the low ground up to the last on the peaks. One undo step.\nTake a screenshot after each change to check your work.",
|
|
3318
3762
|
"inputSchema": {
|
|
3319
3763
|
"type": "object",
|
|
3320
3764
|
"properties": {
|
|
@@ -3340,7 +3784,21 @@
|
|
|
3340
3784
|
"height": {
|
|
3341
3785
|
"type": "number",
|
|
3342
3786
|
"minimum": 0,
|
|
3343
|
-
"maximum":
|
|
3787
|
+
"maximum": 100,
|
|
3788
|
+
"description": "the highest peak, metres"
|
|
3789
|
+
},
|
|
3790
|
+
"amplitude": {
|
|
3791
|
+
"type": "number",
|
|
3792
|
+
"minimum": 0,
|
|
3793
|
+
"maximum": 40,
|
|
3794
|
+
"description": "the raw noise scale (height sets it for you)"
|
|
3795
|
+
},
|
|
3796
|
+
"paintBy": {
|
|
3797
|
+
"type": "string",
|
|
3798
|
+
"enum": [
|
|
3799
|
+
"height"
|
|
3800
|
+
],
|
|
3801
|
+
"description": "paint the layers by height: layer 0 low, the last layer on the peaks"
|
|
3344
3802
|
},
|
|
3345
3803
|
"detail": {
|
|
3346
3804
|
"type": "number"
|
|
@@ -3411,7 +3869,7 @@
|
|
|
3411
3869
|
{
|
|
3412
3870
|
"name": "water",
|
|
3413
3871
|
"title": "Add or change water",
|
|
3414
|
-
"description": "Water: without uuid it makes a body of water — kind tank, pool, round, lake or ocean, size [w, h, d], at position (its bottom centre). With uuid it changes one (or makes an object water with a preset). preset: pool, aquarium, ocean, lake, river, lava, swamp, toxic, ice. level 0-1 (how full), color, look {shallowColor, deepColor, clarity, foam, …}, waves {count, amplitude, wavelength, speed, direction}, flow. Things float in it in Play. remove: true makes it a plain object again. One undo step.\nTake a screenshot after each change to check your work.",
|
|
3872
|
+
"description": "Water: without uuid it makes a body of water — kind tank, pool, round, lake or ocean, size [w, h, d] (round: [diameter, depth, diameter]), at position (its bottom centre). With uuid it changes one (or makes an object water with a preset). preset: pool, aquarium, ocean, lake, river, lava, swamp, toxic, ice. level 0-1 (how full), color (tints the whole body, shallow to deep), look {shallowColor, deepColor, clarity, foam, …}, waves {count, amplitude, wavelength, speed, direction}, flow. Things float in it in Play. remove: true makes it a plain object again. One undo step.\nTake a screenshot after each change to check your work.",
|
|
3415
3873
|
"inputSchema": {
|
|
3416
3874
|
"type": "object",
|
|
3417
3875
|
"properties": {
|
|
@@ -3478,13 +3936,13 @@
|
|
|
3478
3936
|
{
|
|
3479
3937
|
"name": "place_sound",
|
|
3480
3938
|
"title": "Place a sound",
|
|
3481
|
-
"description": "A sound in the world: asset = a
|
|
3939
|
+
"description": "A sound in the world: asset = a sound from search_assets kinds [\"sound\"] — a library hash / lib: id, or a pack sound pack:<name>/<file> (copied into the library on first use) — or an https URL of a sound file (it is checked and added to the library first). A sound you made or fetched yourself goes through assets upload (base64 bytes → a hash), so a site without CORS does not matter. Positional: heard near position (or on object), radius metres. Without on it loops all the time (a campfire crackle, a river); on: click | enter | exit | grab | hit plays it once when that happens on the object. One undo step for the file's node and its wiring.\nTake a screenshot after each change to check your work.",
|
|
3482
3940
|
"inputSchema": {
|
|
3483
3941
|
"type": "object",
|
|
3484
3942
|
"properties": {
|
|
3485
3943
|
"asset": {
|
|
3486
3944
|
"type": "string",
|
|
3487
|
-
"description": "lib:<hash>, a library hash, or https://…"
|
|
3945
|
+
"description": "lib:<hash>, a library hash, pack:<name>/<file>, or https://…"
|
|
3488
3946
|
},
|
|
3489
3947
|
"object": {
|
|
3490
3948
|
"type": "string",
|
|
@@ -3537,7 +3995,7 @@
|
|
|
3537
3995
|
{
|
|
3538
3996
|
"name": "set_music",
|
|
3539
3997
|
"title": "Set the background music",
|
|
3540
|
-
"description": "The scene's background music, heard by everyone in sync: asset = a library sound
|
|
3998
|
+
"description": "The scene's background music, heard by everyone in sync: asset = a library sound (hash / lib:), a pack sound pack:<name>/<file>, an https URL, or the hash assets upload gave you for your own music (null clears it), volume 0-1, play / stop. One undo step.\nTake a screenshot after each change to check your work.",
|
|
3541
3999
|
"inputSchema": {
|
|
3542
4000
|
"type": "object",
|
|
3543
4001
|
"properties": {
|
|
@@ -3996,6 +4454,42 @@
|
|
|
3996
4454
|
"openWorldHint": false
|
|
3997
4455
|
}
|
|
3998
4456
|
},
|
|
4457
|
+
{
|
|
4458
|
+
"name": "take_photo",
|
|
4459
|
+
"title": "Take a path-traced photo of the view",
|
|
4460
|
+
"description": "A PHOTO of the person's current view: a path-traced still (soft shadows, real reflections and glass), rendered in their tab while they keep working; their view never moves. It takes seconds to a minute: samples (1-2048, default 256) or seconds (2-600, default 60), whichever comes first. On a Quest or a weak phone a PC in the session renders it; with no PC it is a normal still and the answer says why. Post effects, flat text, particles and your own GLSL are not in a photo (notShown lists what was left out). save: true also files the PNG in the Library under Scene shots. Use it when the person asks for a photo, a render or a nice picture of the scene; for checking your work use screenshot.\nTake a screenshot after each change to check your work.",
|
|
4461
|
+
"inputSchema": {
|
|
4462
|
+
"type": "object",
|
|
4463
|
+
"properties": {
|
|
4464
|
+
"samples": {
|
|
4465
|
+
"type": "integer",
|
|
4466
|
+
"minimum": 1,
|
|
4467
|
+
"maximum": 2048,
|
|
4468
|
+
"description": "path-tracing samples (more = cleaner, slower; default 256)"
|
|
4469
|
+
},
|
|
4470
|
+
"seconds": {
|
|
4471
|
+
"type": "number",
|
|
4472
|
+
"minimum": 2,
|
|
4473
|
+
"maximum": 600,
|
|
4474
|
+
"description": "time limit in seconds (default 60)"
|
|
4475
|
+
},
|
|
4476
|
+
"denoise": {
|
|
4477
|
+
"type": "boolean",
|
|
4478
|
+
"description": "smooth the remaining noise (default true)"
|
|
4479
|
+
},
|
|
4480
|
+
"save": {
|
|
4481
|
+
"type": "boolean",
|
|
4482
|
+
"description": "also save the PNG to the Library under Scene shots/<scene> (default false)"
|
|
4483
|
+
}
|
|
4484
|
+
}
|
|
4485
|
+
},
|
|
4486
|
+
"annotations": {
|
|
4487
|
+
"title": "Take a path-traced photo of the view",
|
|
4488
|
+
"readOnlyHint": false,
|
|
4489
|
+
"destructiveHint": false,
|
|
4490
|
+
"openWorldHint": false
|
|
4491
|
+
}
|
|
4492
|
+
},
|
|
3999
4493
|
{
|
|
4000
4494
|
"name": "create_flow_nodes",
|
|
4001
4495
|
"title": "Add behaviour (flow) nodes",
|
|
@@ -4484,7 +4978,7 @@
|
|
|
4484
4978
|
{
|
|
4485
4979
|
"name": "import_file",
|
|
4486
4980
|
"title": "Import a file",
|
|
4487
|
-
"description": "Bring a file made on your machine into the session: PNG / WebP images (≤ 16 MB, metadata stripped), JSON (≤ 2 MB)
|
|
4981
|
+
"description": "Bring a file made on your machine into the session: PNG / WebP images (≤ 16 MB, metadata stripped), JSON (≤ 2 MB), a .tpanim clip, or a font (TTF / OTF / WOFF / WOFF2 — it becomes a Library font for 3D text). The type is read from the bytes. It lands in the Explorer (folder \"Generated\" unless `folder`), shared with every peer. Pass the generator's input as `spec` and it is saved beside the file as <name>.<generator>.json (e.g. knight.png + knight.pixling.json) so it can be regenerated. An image is also placed in the scene as a card (a plane; `place: false` to skip): `filter: \"nearest\"` keeps pixel art crisp (default when a spec is given), `frame: {w, h, col, row}` shows one frame of a sprite sheet, `facing: \"camera-y\"` turns it to face each viewer. One undo step; editors and admins only. Large files: send base64 parts with `chunk: {id, index, total}` (the bridge does this for you with `path`).\nTake a screenshot after each change to check your work.",
|
|
4488
4982
|
"inputSchema": {
|
|
4489
4983
|
"type": "object",
|
|
4490
4984
|
"properties": {
|
|
@@ -4617,6 +5111,141 @@
|
|
|
4617
5111
|
"openWorldHint": false
|
|
4618
5112
|
}
|
|
4619
5113
|
},
|
|
5114
|
+
{
|
|
5115
|
+
"name": "upload_asset",
|
|
5116
|
+
"title": "Upload a sound or an HDR sky",
|
|
5117
|
+
"description": "Put a SOUND or an HDR SKY you hold as bytes into the library and get its hash: your own generated music or ambience, or a file you fetched yourself (any site — the bytes come from you, so nothing needs the site to allow cross-origin reads). data = base64; a big file goes as chunk: {id, index, total} parts (each a multiple of 4 base64 characters). Sounds: WAV, OGG, MP3, FLAC, M4A or WebM up to 16 MB (decoded once to prove it is audio) → place it with effects sound {asset: hash} or music {asset: hash}. Skies: Radiance .hdr or OpenEXR up to 25 MB → set_look sky {hdri: {hash}}. The type comes from the bytes, never the name. Images go through image instead. Everyone in the session can pull it by hash.\nTake a screenshot after each change to check your work.",
|
|
5118
|
+
"inputSchema": {
|
|
5119
|
+
"type": "object",
|
|
5120
|
+
"properties": {
|
|
5121
|
+
"data": {
|
|
5122
|
+
"type": "string",
|
|
5123
|
+
"description": "the file as base64 (or this chunk's part of it)"
|
|
5124
|
+
},
|
|
5125
|
+
"chunk": {
|
|
5126
|
+
"type": "object",
|
|
5127
|
+
"description": "{id, index (from 0), total}: one part of a big file; it lands when the last part arrives",
|
|
5128
|
+
"properties": {
|
|
5129
|
+
"id": {
|
|
5130
|
+
"type": "string"
|
|
5131
|
+
},
|
|
5132
|
+
"index": {
|
|
5133
|
+
"type": "integer"
|
|
5134
|
+
},
|
|
5135
|
+
"total": {
|
|
5136
|
+
"type": "integer"
|
|
5137
|
+
}
|
|
5138
|
+
}
|
|
5139
|
+
},
|
|
5140
|
+
"name": {
|
|
5141
|
+
"type": "string",
|
|
5142
|
+
"description": "a name for the library (the extension comes from the bytes)"
|
|
5143
|
+
},
|
|
5144
|
+
"folder": {
|
|
5145
|
+
"type": "string",
|
|
5146
|
+
"description": "Explorer folder (default \"Sounds\" or \"Skies\")"
|
|
5147
|
+
}
|
|
5148
|
+
},
|
|
5149
|
+
"required": [
|
|
5150
|
+
"data"
|
|
5151
|
+
]
|
|
5152
|
+
},
|
|
5153
|
+
"annotations": {
|
|
5154
|
+
"title": "Upload a sound or an HDR sky",
|
|
5155
|
+
"readOnlyHint": false,
|
|
5156
|
+
"destructiveHint": false,
|
|
5157
|
+
"openWorldHint": false
|
|
5158
|
+
}
|
|
5159
|
+
},
|
|
5160
|
+
{
|
|
5161
|
+
"name": "import_shape",
|
|
5162
|
+
"title": "Import a model file (glTF / GLB / OBJ)",
|
|
5163
|
+
"description": "Bring in a 3D model file: glTF 2.0 (.glb, or .gltf JSON with everything embedded) or Wavefront .obj, as data (base64; for a big file send chunk: {id, index, total} parts, each a multiple of 4 base64 characters) or an https url (public addresses only, ≤ 25 MB; the file is copied into the library first, so the scene never needs the address again). Named sub-meshes become named children, returned in parts with uuids, so animate_parts can move them (a lid, a wheel, a door). position / rotation (radians) / scale as create_objects; with parentUuid they are the group's own space. castShadow / receiveShadow apply to every mesh in it. A model is data: nothing in it runs, and a file that points at outside files is refused. One undo step; everyone sees it.\nTake a screenshot after each change to check your work.",
|
|
5164
|
+
"inputSchema": {
|
|
5165
|
+
"type": "object",
|
|
5166
|
+
"properties": {
|
|
5167
|
+
"data": {
|
|
5168
|
+
"type": "string",
|
|
5169
|
+
"description": "the file as base64 (or this chunk's part of it)"
|
|
5170
|
+
},
|
|
5171
|
+
"chunk": {
|
|
5172
|
+
"type": "object",
|
|
5173
|
+
"description": "{id, index (from 0), total}: one part of a big file; the model is placed when the last part lands",
|
|
5174
|
+
"properties": {
|
|
5175
|
+
"id": {
|
|
5176
|
+
"type": "string"
|
|
5177
|
+
},
|
|
5178
|
+
"index": {
|
|
5179
|
+
"type": "integer"
|
|
5180
|
+
},
|
|
5181
|
+
"total": {
|
|
5182
|
+
"type": "integer"
|
|
5183
|
+
}
|
|
5184
|
+
}
|
|
5185
|
+
},
|
|
5186
|
+
"url": {
|
|
5187
|
+
"type": "string",
|
|
5188
|
+
"description": "an https address of a .glb / .gltf / .obj (the server must allow cross-origin reads)"
|
|
5189
|
+
},
|
|
5190
|
+
"name": {
|
|
5191
|
+
"type": "string"
|
|
5192
|
+
},
|
|
5193
|
+
"position": {
|
|
5194
|
+
"type": "array",
|
|
5195
|
+
"items": {
|
|
5196
|
+
"type": "number"
|
|
5197
|
+
},
|
|
5198
|
+
"minItems": 3,
|
|
5199
|
+
"maxItems": 3
|
|
5200
|
+
},
|
|
5201
|
+
"rotation": {
|
|
5202
|
+
"type": "array",
|
|
5203
|
+
"items": {
|
|
5204
|
+
"type": "number"
|
|
5205
|
+
},
|
|
5206
|
+
"minItems": 3,
|
|
5207
|
+
"maxItems": 3,
|
|
5208
|
+
"description": "radians, XYZ"
|
|
5209
|
+
},
|
|
5210
|
+
"scale": {
|
|
5211
|
+
"type": "array",
|
|
5212
|
+
"items": {
|
|
5213
|
+
"type": "number"
|
|
5214
|
+
},
|
|
5215
|
+
"minItems": 3,
|
|
5216
|
+
"maxItems": 3
|
|
5217
|
+
},
|
|
5218
|
+
"parentUuid": {
|
|
5219
|
+
"type": "string",
|
|
5220
|
+
"description": "a group (or any object) to put it in"
|
|
5221
|
+
},
|
|
5222
|
+
"folder": {
|
|
5223
|
+
"type": "string",
|
|
5224
|
+
"description": "Explorer folder (default \"Imported models\")"
|
|
5225
|
+
},
|
|
5226
|
+
"castShadow": {
|
|
5227
|
+
"type": "boolean"
|
|
5228
|
+
},
|
|
5229
|
+
"receiveShadow": {
|
|
5230
|
+
"type": "boolean"
|
|
5231
|
+
},
|
|
5232
|
+
"source": {
|
|
5233
|
+
"type": "string",
|
|
5234
|
+
"description": "where it came from (kept with the model)"
|
|
5235
|
+
},
|
|
5236
|
+
"licence": {
|
|
5237
|
+
"type": "string",
|
|
5238
|
+
"description": "its licence, e.g. CC0"
|
|
5239
|
+
}
|
|
5240
|
+
}
|
|
5241
|
+
},
|
|
5242
|
+
"annotations": {
|
|
5243
|
+
"title": "Import a model file (glTF / GLB / OBJ)",
|
|
5244
|
+
"readOnlyHint": false,
|
|
5245
|
+
"destructiveHint": false,
|
|
5246
|
+
"openWorldHint": true
|
|
5247
|
+
}
|
|
5248
|
+
},
|
|
4620
5249
|
{
|
|
4621
5250
|
"name": "install_modules",
|
|
4622
5251
|
"title": "Install modules",
|
|
@@ -4781,7 +5410,7 @@
|
|
|
4781
5410
|
{
|
|
4782
5411
|
"name": "status",
|
|
4783
5412
|
"title": "Session status",
|
|
4784
|
-
"description": "Where the agent is: connection state, whether the host has let it in, its role (viewer edits stay local), the app version, and why any tool is missing. sceneBudget says how heavy the scene is: objects, triangles (per frame drawn; the scene's own count while the view is idle, then no draw calls), draw calls, textures, lights you placed, frame time p95, tier green / amber / red on the desktop or vr profile, and over = each budget past green (build lighter, or stop adding, while it is not green).\nYou are building in the person's own open theprototype.app tab: a live, shared 3D scene. Every change shows for everyone in the session and can be undone.\nThis may be a VOICE conversation: answer in one or two short spoken sentences and say what changed in plain words (\"Added three trees by the fire\"). Never read out uuids, lists of numbers or JSON.\nIf a tool says the tab is closed or not connected, tell the person to open theprototype.app and press Connect Claude, then wait; do not retry in a loop.\nCall status first: it says whether you may edit (a viewer can only look).\nYou act as this person in their own tab: status \"you\" is them (their peer id, name and role); the other users are everyone else.",
|
|
5413
|
+
"description": "Where the agent is: connection state, whether the host has let it in, its role (viewer edits stay local), the app version, and why any tool is missing. sceneBudget says how heavy the scene is: objects, triangles (per frame drawn; the scene's own count while the view is idle, then no draw calls), draw calls, textures, lights you placed, frame time p95, tier green / amber / red on the desktop or vr profile, and over = each budget past green (build lighter, or stop adding, while it is not green). top = the objects drawing the most triangles / draw calls (lighten those first); vsync says whether frameP95 sits on the display's refresh (a steady 16.7 ms on a 60 Hz screen is the display's cap, not a slow scene) or frames miss it — a frame on the refresh never turns the tier amber or red. callsBySource splits the draw calls: objects (yours), otherInView (people, grid, sky, helpers), shadows, post (effects), otherViews (camera previews, reflections).\nYou are building in the person's own open theprototype.app tab: a live, shared 3D scene. Every change shows for everyone in the session and can be undone.\nThis may be a VOICE conversation: answer in one or two short spoken sentences and say what changed in plain words (\"Added three trees by the fire\"). Never read out uuids, lists of numbers or JSON.\nIf a tool says the tab is closed or not connected, tell the person to open theprototype.app and press Connect Claude, then wait; do not retry in a loop.\nCall status first: it says whether you may edit (a viewer can only look).\nYou act as this person in their own tab: status \"you\" is them (their peer id, name and role); the other users are everyone else.",
|
|
4785
5414
|
"inputSchema": {
|
|
4786
5415
|
"type": "object",
|
|
4787
5416
|
"properties": {}
|
|
@@ -4795,7 +5424,7 @@
|
|
|
4795
5424
|
{
|
|
4796
5425
|
"name": "screenshot",
|
|
4797
5426
|
"title": "Take a picture of the scene",
|
|
4798
|
-
"description": "See the scene: a PNG of a clean frame (no gizmos) from a temporary camera, never moving anyone's view. view: current | top | front | iso | focus (focus needs uuid or uuids); from = an angle or {yaw, pitch}; camera = a free {position, target}. 4:3 unless aspect says otherwise (current follows the person's window). Answers with the camera it used.",
|
|
5427
|
+
"description": "See the scene: a PNG of a clean frame (no gizmos, no people) from a temporary camera, never moving anyone's view. view: current | top | front | iso | focus | camera (focus needs uuid or uuids; camera looks through the scene camera uuid, its lens and framing); from = an angle or {yaw, pitch}; camera = a free {position, target}. 4:3 unless aspect says otherwise (current follows the person's window). Answers with the camera it used. postEffects: true draws the scene's post effects too; hud: true the game HUD on top; avatars: true keeps the people in (current keeps them unless false).",
|
|
4799
5428
|
"inputSchema": {
|
|
4800
5429
|
"type": "object",
|
|
4801
5430
|
"properties": {
|
|
@@ -4806,12 +5435,13 @@
|
|
|
4806
5435
|
"top",
|
|
4807
5436
|
"front",
|
|
4808
5437
|
"iso",
|
|
4809
|
-
"focus"
|
|
5438
|
+
"focus",
|
|
5439
|
+
"camera"
|
|
4810
5440
|
]
|
|
4811
5441
|
},
|
|
4812
5442
|
"uuid": {
|
|
4813
5443
|
"type": "string",
|
|
4814
|
-
"description": "object to frame"
|
|
5444
|
+
"description": "object to frame, or the camera to look through (view camera)"
|
|
4815
5445
|
},
|
|
4816
5446
|
"uuids": {
|
|
4817
5447
|
"type": "array",
|
|
@@ -4902,6 +5532,18 @@
|
|
|
4902
5532
|
"size": {
|
|
4903
5533
|
"type": "number",
|
|
4904
5534
|
"description": "longest side in pixels"
|
|
5535
|
+
},
|
|
5536
|
+
"hud": {
|
|
5537
|
+
"type": "boolean",
|
|
5538
|
+
"description": "true = draw the game HUD this screen shows on top (score, timer, menus), laid out as on screen"
|
|
5539
|
+
},
|
|
5540
|
+
"avatars": {
|
|
5541
|
+
"type": "boolean",
|
|
5542
|
+
"description": "true = keep the people (avatars, an agent's camera marker) in the frame; default leaves them out, except view current"
|
|
5543
|
+
},
|
|
5544
|
+
"postEffects": {
|
|
5545
|
+
"type": "boolean",
|
|
5546
|
+
"description": "true = draw it through the scene's post effects (bloom, vignette, colour grade …) as this screen shows them. The answer says postEffects \"applied\", or \"unavailable\" with a reason (\"quality tier\" = this device turned them off to keep its frame rate, usual on a phone — `how` says where the person raises it, or ask the person for higher quality: set_look action \"quality\" — set_quality for a local agent)"
|
|
4905
5547
|
}
|
|
4906
5548
|
}
|
|
4907
5549
|
},
|
|
@@ -4914,7 +5556,7 @@
|
|
|
4914
5556
|
{
|
|
4915
5557
|
"name": "wait_for_edit",
|
|
4916
5558
|
"title": "Wait for someone to edit",
|
|
4917
|
-
"description": "Wait until someone in the session changes the scene (or the timeout passes), so you can react to the humans.",
|
|
5559
|
+
"description": "Wait until someone in the session changes the scene or PINGS a spot (or the timeout passes), so you can react to the humans. A ping answers {changed: true, ping: {id, position, normal, on}}: build there with at: {ping: id}.",
|
|
4918
5560
|
"inputSchema": {
|
|
4919
5561
|
"type": "object",
|
|
4920
5562
|
"properties": {
|
|
@@ -4981,12 +5623,15 @@
|
|
|
4981
5623
|
"tube": "create_tube",
|
|
4982
5624
|
"extrude": "extrude_shape",
|
|
4983
5625
|
"mesh": "create_mesh",
|
|
5626
|
+
"text": "create_text",
|
|
5627
|
+
"import": "import_shape",
|
|
4984
5628
|
"shapes": "create_shapes"
|
|
4985
5629
|
},
|
|
4986
5630
|
"edit_shape": {
|
|
4987
5631
|
"params": "set_geometry",
|
|
4988
5632
|
"mesh": "edit_mesh",
|
|
4989
5633
|
"update": "update_mesh",
|
|
5634
|
+
"duplicate": "duplicate",
|
|
4990
5635
|
"pivot": "set_pivot",
|
|
4991
5636
|
"pivot_group": "create_pivot"
|
|
4992
5637
|
},
|
|
@@ -5005,18 +5650,24 @@
|
|
|
5005
5650
|
"uv": "set_uv",
|
|
5006
5651
|
"sky": "set_sky",
|
|
5007
5652
|
"light": "set_light",
|
|
5008
|
-
"environment": "get_environment"
|
|
5653
|
+
"environment": "get_environment",
|
|
5654
|
+
"quality": "set_quality",
|
|
5655
|
+
"preset": "set_look_preset",
|
|
5656
|
+
"bake": "bake_light"
|
|
5009
5657
|
},
|
|
5010
5658
|
"run": {
|
|
5011
5659
|
"inspect": "inspect_runtime",
|
|
5012
5660
|
"validate": "validate_scene",
|
|
5013
|
-
"logs": "logs"
|
|
5661
|
+
"logs": "logs",
|
|
5662
|
+
"photo": "take_photo"
|
|
5014
5663
|
},
|
|
5015
5664
|
"assets": {
|
|
5016
5665
|
"search": "search_assets",
|
|
5017
5666
|
"place": "place_asset",
|
|
5018
5667
|
"prefab": "prefab",
|
|
5019
|
-
"image": "add_image"
|
|
5668
|
+
"image": "add_image",
|
|
5669
|
+
"upload": "upload_asset",
|
|
5670
|
+
"fonts": "list_fonts"
|
|
5020
5671
|
},
|
|
5021
5672
|
"effects": {
|
|
5022
5673
|
"terrain": "terrain",
|
|
@@ -5067,7 +5718,7 @@
|
|
|
5067
5718
|
},
|
|
5068
5719
|
"near": {
|
|
5069
5720
|
"type": "object",
|
|
5070
|
-
"description": "optional: only objects within radius of a WORLD position",
|
|
5721
|
+
"description": "optional: only objects within radius of a WORLD position (by: origin = where the object is, the default; touches = any part of its world bounds; inside = all of it)",
|
|
5071
5722
|
"properties": {
|
|
5072
5723
|
"position": {
|
|
5073
5724
|
"type": "array",
|
|
@@ -5078,6 +5729,14 @@
|
|
|
5078
5729
|
},
|
|
5079
5730
|
"radius": {
|
|
5080
5731
|
"type": "number"
|
|
5732
|
+
},
|
|
5733
|
+
"by": {
|
|
5734
|
+
"type": "string",
|
|
5735
|
+
"enum": [
|
|
5736
|
+
"origin",
|
|
5737
|
+
"touches",
|
|
5738
|
+
"inside"
|
|
5739
|
+
]
|
|
5081
5740
|
}
|
|
5082
5741
|
},
|
|
5083
5742
|
"required": [
|
|
@@ -5087,7 +5746,7 @@
|
|
|
5087
5746
|
},
|
|
5088
5747
|
"bounds": {
|
|
5089
5748
|
"type": "object",
|
|
5090
|
-
"description": "optional: only objects
|
|
5749
|
+
"description": "optional: only objects inside this WORLD box — by: origin = their position (the default), touches = any part of their world mesh bounds overlaps it (a long wall crossing in), inside = all of it fits",
|
|
5091
5750
|
"properties": {
|
|
5092
5751
|
"min": {
|
|
5093
5752
|
"type": "array",
|
|
@@ -5102,6 +5761,14 @@
|
|
|
5102
5761
|
"type": "number"
|
|
5103
5762
|
},
|
|
5104
5763
|
"description": "[x, y, z]"
|
|
5764
|
+
},
|
|
5765
|
+
"by": {
|
|
5766
|
+
"type": "string",
|
|
5767
|
+
"enum": [
|
|
5768
|
+
"origin",
|
|
5769
|
+
"touches",
|
|
5770
|
+
"inside"
|
|
5771
|
+
]
|
|
5105
5772
|
}
|
|
5106
5773
|
},
|
|
5107
5774
|
"required": [
|
|
@@ -5217,7 +5884,7 @@
|
|
|
5217
5884
|
"items": {
|
|
5218
5885
|
"type": "number"
|
|
5219
5886
|
},
|
|
5220
|
-
"description": "up to 4 constructor args. Box=[w,h,d], Sphere=[radius], Cylinder=[rTop,rBottom,height], Cone=[radius,height], Plane=[w,h], Torus=[radius,tube]. Omit for sensible defaults."
|
|
5887
|
+
"description": "up to 4 constructor args. Box=[w,h,d], Sphere=[radius], Cylinder=[rTop,rBottom,height], Cone=[radius,height], Plane=[w,h], Torus=[radius,tube]. Omit for sensible defaults. Sizes go down to 0.001 m."
|
|
5221
5888
|
},
|
|
5222
5889
|
"name": {
|
|
5223
5890
|
"type": "string"
|
|
@@ -5304,7 +5971,7 @@
|
|
|
5304
5971
|
"description": "meshes and models: shadows fall on it (on by default)"
|
|
5305
5972
|
},
|
|
5306
5973
|
"lookAt": {
|
|
5307
|
-
"description": "turn it so its local +Z
|
|
5974
|
+
"description": "turn it so its front (local +Z, or the front you give) faces this: a world point [x,y,z] or another object's uuid (+Y stays up; lights use aim)"
|
|
5308
5975
|
},
|
|
5309
5976
|
"at": {
|
|
5310
5977
|
"type": "object",
|
|
@@ -5342,11 +6009,23 @@
|
|
|
5342
6009
|
"description": "stand it on whatever is straight under it (terrain, floor, table; at most 2 m above its base), else the ground"
|
|
5343
6010
|
},
|
|
5344
6011
|
"face_user": {
|
|
5345
|
-
"description": "turn it (yaw only) so its
|
|
6012
|
+
"description": "turn it (yaw only) so its front faces a person: true = the person you act for, or a peer id / name from where_are_users"
|
|
6013
|
+
},
|
|
6014
|
+
"front": {
|
|
6015
|
+
"type": "string",
|
|
6016
|
+
"enum": [
|
|
6017
|
+
"+z",
|
|
6018
|
+
"-z",
|
|
6019
|
+
"+x",
|
|
6020
|
+
"-x",
|
|
6021
|
+
"+y",
|
|
6022
|
+
"-y"
|
|
6023
|
+
],
|
|
6024
|
+
"description": "which local axis is its front for lookAt and face_user (default +z; many models face +x or -z — look at a screenshot)"
|
|
5346
6025
|
},
|
|
5347
6026
|
"parentUuid": {
|
|
5348
6027
|
"type": "string",
|
|
5349
|
-
"description": "uuid of an existing group to nest under — position/rotation/scale are then LOCAL to that
|
|
6028
|
+
"description": "uuid of an existing group (or any object, not a light or camera) to nest under — position/rotation/scale are then LOCAL to it. A uuid that is not in the scene is an error and that object is not made"
|
|
5350
6029
|
},
|
|
5351
6030
|
"physics": {
|
|
5352
6031
|
"type": "string",
|
|
@@ -5489,7 +6168,7 @@
|
|
|
5489
6168
|
"description": "meshes and models: shadows fall on it (on by default)"
|
|
5490
6169
|
},
|
|
5491
6170
|
"lookAt": {
|
|
5492
|
-
"description": "turn it so its local +Z
|
|
6171
|
+
"description": "turn it so its front (local +Z, or the front you give) faces this: a world point [x,y,z] or another object's uuid (+Y stays up; lights use aim)"
|
|
5493
6172
|
},
|
|
5494
6173
|
"at": {
|
|
5495
6174
|
"type": "object",
|
|
@@ -5527,14 +6206,26 @@
|
|
|
5527
6206
|
"description": "stand it on whatever is straight under it (terrain, floor, table; at most 2 m above its base), else the ground"
|
|
5528
6207
|
},
|
|
5529
6208
|
"face_user": {
|
|
5530
|
-
"description": "turn it (yaw only) so its
|
|
6209
|
+
"description": "turn it (yaw only) so its front faces a person: true = the person you act for, or a peer id / name from where_are_users"
|
|
6210
|
+
},
|
|
6211
|
+
"front": {
|
|
6212
|
+
"type": "string",
|
|
6213
|
+
"enum": [
|
|
6214
|
+
"+z",
|
|
6215
|
+
"-z",
|
|
6216
|
+
"+x",
|
|
6217
|
+
"-x",
|
|
6218
|
+
"+y",
|
|
6219
|
+
"-y"
|
|
6220
|
+
],
|
|
6221
|
+
"description": "which local axis is its front for lookAt and face_user (default +z; many models face +x or -z — look at a screenshot)"
|
|
5531
6222
|
},
|
|
5532
6223
|
"visible": {
|
|
5533
6224
|
"type": "boolean"
|
|
5534
6225
|
},
|
|
5535
6226
|
"parentUuid": {
|
|
5536
6227
|
"type": "string",
|
|
5537
|
-
"description": "group uuid to nest under, or \"root\" to un-nest. The object keeps its world pose; a position given in the same update is LOCAL to the new parent"
|
|
6228
|
+
"description": "group uuid (or any object, not a light or camera) to nest under, or \"root\" to un-nest. The object keeps its world pose; a position given in the same update is LOCAL to the new parent. A uuid not in the scene is an error"
|
|
5538
6229
|
}
|
|
5539
6230
|
},
|
|
5540
6231
|
"required": [
|
|
@@ -5726,7 +6417,7 @@
|
|
|
5726
6417
|
{
|
|
5727
6418
|
"name": "create_shape",
|
|
5728
6419
|
"title": "Make a shape",
|
|
5729
|
-
"description": "Make shapes the basic objects cannot: a lathe (a vase, a bowl, a lamp from a profile turned around an axis), a tube along a path (a rail, a pipe, a cable), an extruded outline (a sign, a star, a wall with a hole),
|
|
6420
|
+
"description": "Make shapes the basic objects cannot: a lathe (a vase, a bowl, a lamp from a profile turned around an axis), a tube along a path (a rail, a pipe, a cable), an extruded outline (a sign, a star, a wall with a hole), a mesh from your own vertices (anything else), or text = 3D words (a sign, a title: flat, or solid with depth and a bevel; any bundled or Google Fonts font); import = a glTF / GLB / OBJ model file (base64, chunks or an https url) whose named parts come back as children animate_parts can move.\nCall it as {\"action\": \"lathe\", \"lathe\": {…its fields…}}; each action's fields and limits are in its object below.\nMany at once: {\"shapes\": [{\"action\": \"lathe\", \"lathe\": {…}}, …]} with no action — one call, one undo step.\nTake a screenshot after each change to check your work.",
|
|
5730
6421
|
"inputSchema": {
|
|
5731
6422
|
"type": "object",
|
|
5732
6423
|
"properties": {
|
|
@@ -5736,7 +6427,9 @@
|
|
|
5736
6427
|
"lathe",
|
|
5737
6428
|
"tube",
|
|
5738
6429
|
"extrude",
|
|
5739
|
-
"mesh"
|
|
6430
|
+
"mesh",
|
|
6431
|
+
"text",
|
|
6432
|
+
"import"
|
|
5740
6433
|
],
|
|
5741
6434
|
"description": "What to do. Put its fields in the object named after the action."
|
|
5742
6435
|
},
|
|
@@ -5803,7 +6496,7 @@
|
|
|
5803
6496
|
},
|
|
5804
6497
|
"parentUuid": {
|
|
5805
6498
|
"type": "string",
|
|
5806
|
-
"description": "uuid of a group to nest under — position / rotation / scale AND the shape's own points are then LOCAL to
|
|
6499
|
+
"description": "uuid of a group (or any object, not a light or camera) to nest under — position / rotation / scale AND the shape's own points are then LOCAL to it (no position = its origin), so the part moves and turns with it. A uuid that is not in the scene is an error and nothing is made"
|
|
5807
6500
|
},
|
|
5808
6501
|
"physics": {
|
|
5809
6502
|
"type": "string",
|
|
@@ -5989,7 +6682,7 @@
|
|
|
5989
6682
|
},
|
|
5990
6683
|
"parentUuid": {
|
|
5991
6684
|
"type": "string",
|
|
5992
|
-
"description": "uuid of a group to nest under — position / rotation / scale AND the shape's own points are then LOCAL to
|
|
6685
|
+
"description": "uuid of a group (or any object, not a light or camera) to nest under — position / rotation / scale AND the shape's own points are then LOCAL to it (no position = its origin), so the part moves and turns with it. A uuid that is not in the scene is an error and nothing is made"
|
|
5993
6686
|
},
|
|
5994
6687
|
"physics": {
|
|
5995
6688
|
"type": "string",
|
|
@@ -6059,15 +6752,31 @@
|
|
|
6059
6752
|
"colors": {
|
|
6060
6753
|
"type": "array",
|
|
6061
6754
|
"items": {
|
|
6062
|
-
"
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6755
|
+
"anyOf": [
|
|
6756
|
+
{
|
|
6757
|
+
"type": "array",
|
|
6758
|
+
"items": {
|
|
6759
|
+
"type": "number"
|
|
6760
|
+
},
|
|
6761
|
+
"minItems": 3,
|
|
6762
|
+
"maxItems": 3
|
|
6763
|
+
},
|
|
6764
|
+
{
|
|
6765
|
+
"type": "string",
|
|
6766
|
+
"description": "#rrggbb"
|
|
6767
|
+
}
|
|
6768
|
+
]
|
|
6068
6769
|
},
|
|
6069
6770
|
"maxItems": 20000,
|
|
6070
|
-
"description": "one [r, g, b] (0-1
|
|
6771
|
+
"description": "one colour per vertex, in the order of vertices: [r, g, b] (0-1, sRGB unless colorSpace is \"linear\") or \"#rrggbb\""
|
|
6772
|
+
},
|
|
6773
|
+
"colorSpace": {
|
|
6774
|
+
"type": "string",
|
|
6775
|
+
"enum": [
|
|
6776
|
+
"srgb",
|
|
6777
|
+
"linear"
|
|
6778
|
+
],
|
|
6779
|
+
"description": "how [r, g, b] colors numbers are meant: \"srgb\" (default — like a colour picker, as material colours are) or \"linear\"; hex is always sRGB"
|
|
6071
6780
|
},
|
|
6072
6781
|
"materials": {
|
|
6073
6782
|
"type": "array",
|
|
@@ -6120,11 +6829,222 @@
|
|
|
6120
6829
|
"maxItems": 20000,
|
|
6121
6830
|
"description": "the materials slot of each face (0 = the first), one per face"
|
|
6122
6831
|
},
|
|
6123
|
-
"subdivide": {
|
|
6124
|
-
"type": "integer",
|
|
6125
|
-
"minimum": 0,
|
|
6126
|
-
"maximum": 2,
|
|
6127
|
-
"description": "smooth the mesh 1 or 2 levels (Catmull-Clark); smooth shading follows unless smooth: false"
|
|
6832
|
+
"subdivide": {
|
|
6833
|
+
"type": "integer",
|
|
6834
|
+
"minimum": 0,
|
|
6835
|
+
"maximum": 2,
|
|
6836
|
+
"description": "smooth the mesh 1 or 2 levels (Catmull-Clark); smooth shading follows unless smooth: false"
|
|
6837
|
+
},
|
|
6838
|
+
"name": {
|
|
6839
|
+
"type": "string"
|
|
6840
|
+
},
|
|
6841
|
+
"position": {
|
|
6842
|
+
"type": "array",
|
|
6843
|
+
"items": {
|
|
6844
|
+
"type": "number"
|
|
6845
|
+
},
|
|
6846
|
+
"minItems": 3,
|
|
6847
|
+
"maxItems": 3
|
|
6848
|
+
},
|
|
6849
|
+
"rotation": {
|
|
6850
|
+
"type": "array",
|
|
6851
|
+
"items": {
|
|
6852
|
+
"type": "number"
|
|
6853
|
+
},
|
|
6854
|
+
"minItems": 3,
|
|
6855
|
+
"maxItems": 3,
|
|
6856
|
+
"description": "Euler radians"
|
|
6857
|
+
},
|
|
6858
|
+
"scale": {
|
|
6859
|
+
"type": "array",
|
|
6860
|
+
"items": {
|
|
6861
|
+
"type": "number"
|
|
6862
|
+
},
|
|
6863
|
+
"minItems": 3,
|
|
6864
|
+
"maxItems": 3
|
|
6865
|
+
},
|
|
6866
|
+
"color": {
|
|
6867
|
+
"type": "string",
|
|
6868
|
+
"description": "hex #rrggbb"
|
|
6869
|
+
},
|
|
6870
|
+
"parentUuid": {
|
|
6871
|
+
"type": "string",
|
|
6872
|
+
"description": "uuid of a group (or any object, not a light or camera) to nest under — position / rotation / scale AND the shape's own points are then LOCAL to it (no position = its origin), so the part moves and turns with it. A uuid that is not in the scene is an error and nothing is made"
|
|
6873
|
+
},
|
|
6874
|
+
"physics": {
|
|
6875
|
+
"type": "string",
|
|
6876
|
+
"enum": [
|
|
6877
|
+
"static",
|
|
6878
|
+
"dynamic"
|
|
6879
|
+
],
|
|
6880
|
+
"description": "default static"
|
|
6881
|
+
},
|
|
6882
|
+
"castShadow": {
|
|
6883
|
+
"type": "boolean",
|
|
6884
|
+
"description": "cast a shadow (on by default)"
|
|
6885
|
+
},
|
|
6886
|
+
"receiveShadow": {
|
|
6887
|
+
"type": "boolean",
|
|
6888
|
+
"description": "shadows fall on it (on by default)"
|
|
6889
|
+
}
|
|
6890
|
+
},
|
|
6891
|
+
"required": [
|
|
6892
|
+
"vertices",
|
|
6893
|
+
"faces"
|
|
6894
|
+
],
|
|
6895
|
+
"description": "A mesh from raw data: vertices [[x, y, z], …] and faces [[i, j, k] or [i, j, k, l] …] (indices into vertices, counter-clockwise seen from outside; polygons of up to 32 corners are fanned, so keep them convex), optional uvs (one [u, v] per vertex). Up to 20000 vertices and 20000 faces; normals are computed (smooth: true for smooth shading, flatShading: true for hard facets). Colour it as you make it: materials [{color, roughness, metalness, …}] (up to 16 slots) with faceMaterials [slot per face, same order as faces] for parts in different colours; or colors (one per vertex: [r, g, b] 0-1 meant as sRGB, the way a colour picker or a hex code means them, or a \"#rrggbb\" string; colorSpace: \"linear\" takes the numbers as linear) for a painted gradient — they multiply the material colour, which is white when you give colors and no color. Material slots last through edit_shape {action: 'mesh'}; vertex colours last only while an edit keeps the vertex count. subdivide: 1 or 2 smooths it (Catmull-Clark: a box of six quads becomes a rounded pebble, a few quads become a soft organic shape; each level about four times the faces, checked against the caps). Edit it afterwards with edit_shape {action: 'mesh'}, or send new vertices with edit_shape {action: 'update'}. Returns the uuid."
|
|
6896
|
+
},
|
|
6897
|
+
"text": {
|
|
6898
|
+
"type": "object",
|
|
6899
|
+
"properties": {
|
|
6900
|
+
"text": {
|
|
6901
|
+
"type": "string",
|
|
6902
|
+
"description": "the words; \\n breaks a line"
|
|
6903
|
+
},
|
|
6904
|
+
"font": {
|
|
6905
|
+
"description": "a bundled font (sans, serif, mono, rounded, display — or its name: Noto Sans, Noto Serif, IBM Plex Mono, Nunito, Press Start 2P, IBM Plex Sans), ANY Google Fonts family name (fetched once, kept in the Library), or {asset: \"<hash>\"} for a Library font"
|
|
6906
|
+
},
|
|
6907
|
+
"size": {
|
|
6908
|
+
"type": "number",
|
|
6909
|
+
"description": "letter height (the em) in metres, default 0.4"
|
|
6910
|
+
},
|
|
6911
|
+
"solid": {
|
|
6912
|
+
"type": "boolean",
|
|
6913
|
+
"description": "true = solid 3D letters (extruded); false = flat. depth or bevel imply solid"
|
|
6914
|
+
},
|
|
6915
|
+
"depth": {
|
|
6916
|
+
"type": "number",
|
|
6917
|
+
"description": "solid: thickness in metres (default 0.1)"
|
|
6918
|
+
},
|
|
6919
|
+
"bevel": {
|
|
6920
|
+
"description": "solid: bevel width in metres, false for none, or {size, thickness, segments}"
|
|
6921
|
+
},
|
|
6922
|
+
"align": {
|
|
6923
|
+
"type": "string",
|
|
6924
|
+
"enum": [
|
|
6925
|
+
"left",
|
|
6926
|
+
"center",
|
|
6927
|
+
"right",
|
|
6928
|
+
"justify"
|
|
6929
|
+
]
|
|
6930
|
+
},
|
|
6931
|
+
"maxWidth": {
|
|
6932
|
+
"type": "number",
|
|
6933
|
+
"description": "wrap lines at this width in metres; 0 = no wrapping"
|
|
6934
|
+
},
|
|
6935
|
+
"anchor": {
|
|
6936
|
+
"type": "string",
|
|
6937
|
+
"enum": [
|
|
6938
|
+
"top-left",
|
|
6939
|
+
"top-center",
|
|
6940
|
+
"top-right",
|
|
6941
|
+
"middle-left",
|
|
6942
|
+
"middle-center",
|
|
6943
|
+
"middle-right",
|
|
6944
|
+
"bottom-left",
|
|
6945
|
+
"bottom-center",
|
|
6946
|
+
"bottom-right"
|
|
6947
|
+
],
|
|
6948
|
+
"description": "where the block sits around its position (default middle-center)"
|
|
6949
|
+
},
|
|
6950
|
+
"lineHeight": {
|
|
6951
|
+
"type": "number",
|
|
6952
|
+
"description": "in ems, default 1.2"
|
|
6953
|
+
},
|
|
6954
|
+
"letterSpacing": {
|
|
6955
|
+
"type": "number",
|
|
6956
|
+
"description": "extra space between letters, in ems"
|
|
6957
|
+
},
|
|
6958
|
+
"bold": {
|
|
6959
|
+
"type": "boolean",
|
|
6960
|
+
"description": "flat Noto Sans and Google fonts"
|
|
6961
|
+
},
|
|
6962
|
+
"italic": {
|
|
6963
|
+
"type": "boolean"
|
|
6964
|
+
},
|
|
6965
|
+
"color": {
|
|
6966
|
+
"type": "string",
|
|
6967
|
+
"description": "hex #rrggbb (the face colour of solid text)"
|
|
6968
|
+
},
|
|
6969
|
+
"sideColor": {
|
|
6970
|
+
"type": "string",
|
|
6971
|
+
"description": "solid: hex colour of the sides (default a shade of color)"
|
|
6972
|
+
},
|
|
6973
|
+
"emissive": {
|
|
6974
|
+
"type": "number",
|
|
6975
|
+
"description": "solid: glow 0..4"
|
|
6976
|
+
},
|
|
6977
|
+
"metalness": {
|
|
6978
|
+
"type": "number"
|
|
6979
|
+
},
|
|
6980
|
+
"roughness": {
|
|
6981
|
+
"type": "number"
|
|
6982
|
+
},
|
|
6983
|
+
"quality": {
|
|
6984
|
+
"type": "string",
|
|
6985
|
+
"enum": [
|
|
6986
|
+
"low",
|
|
6987
|
+
"medium",
|
|
6988
|
+
"high"
|
|
6989
|
+
],
|
|
6990
|
+
"description": "solid: curve smoothness (triangles)"
|
|
6991
|
+
},
|
|
6992
|
+
"outline": {
|
|
6993
|
+
"type": "number",
|
|
6994
|
+
"description": "flat: outline width in ems (0..0.3)"
|
|
6995
|
+
},
|
|
6996
|
+
"name": {
|
|
6997
|
+
"type": "string"
|
|
6998
|
+
},
|
|
6999
|
+
"position": {
|
|
7000
|
+
"type": "array",
|
|
7001
|
+
"items": {
|
|
7002
|
+
"type": "number"
|
|
7003
|
+
},
|
|
7004
|
+
"minItems": 3,
|
|
7005
|
+
"maxItems": 3,
|
|
7006
|
+
"description": "world point, metres (default: in front of the camera)"
|
|
7007
|
+
},
|
|
7008
|
+
"rotation": {
|
|
7009
|
+
"type": "array",
|
|
7010
|
+
"items": {
|
|
7011
|
+
"type": "number"
|
|
7012
|
+
},
|
|
7013
|
+
"minItems": 3,
|
|
7014
|
+
"maxItems": 3,
|
|
7015
|
+
"description": "Euler radians"
|
|
7016
|
+
}
|
|
7017
|
+
},
|
|
7018
|
+
"required": [
|
|
7019
|
+
"text"
|
|
7020
|
+
],
|
|
7021
|
+
"description": "Add a 3D text object: a sign, a title, a label. Flat letters by default; solid (extruded) letters with depth and a bevel when solid: true or depth / bevel are given. Fonts: bundled, any Google Fonts family by name, or a Library font {asset}. Solid text holds up to 300 characters (80 on a phone or headset), flat 2000. Returns its uuid; change it later with edit_shape {action: 'params'} params."
|
|
7022
|
+
},
|
|
7023
|
+
"import": {
|
|
7024
|
+
"type": "object",
|
|
7025
|
+
"properties": {
|
|
7026
|
+
"data": {
|
|
7027
|
+
"type": "string",
|
|
7028
|
+
"description": "the file as base64 (or this chunk's part of it)"
|
|
7029
|
+
},
|
|
7030
|
+
"chunk": {
|
|
7031
|
+
"type": "object",
|
|
7032
|
+
"description": "{id, index (from 0), total}: one part of a big file; the model is placed when the last part lands",
|
|
7033
|
+
"properties": {
|
|
7034
|
+
"id": {
|
|
7035
|
+
"type": "string"
|
|
7036
|
+
},
|
|
7037
|
+
"index": {
|
|
7038
|
+
"type": "integer"
|
|
7039
|
+
},
|
|
7040
|
+
"total": {
|
|
7041
|
+
"type": "integer"
|
|
7042
|
+
}
|
|
7043
|
+
}
|
|
7044
|
+
},
|
|
7045
|
+
"url": {
|
|
7046
|
+
"type": "string",
|
|
7047
|
+
"description": "an https address of a .glb / .gltf / .obj (the server must allow cross-origin reads)"
|
|
6128
7048
|
},
|
|
6129
7049
|
"name": {
|
|
6130
7050
|
"type": "string"
|
|
@@ -6144,7 +7064,7 @@
|
|
|
6144
7064
|
},
|
|
6145
7065
|
"minItems": 3,
|
|
6146
7066
|
"maxItems": 3,
|
|
6147
|
-
"description": "
|
|
7067
|
+
"description": "radians, XYZ"
|
|
6148
7068
|
},
|
|
6149
7069
|
"scale": {
|
|
6150
7070
|
"type": "array",
|
|
@@ -6154,36 +7074,30 @@
|
|
|
6154
7074
|
"minItems": 3,
|
|
6155
7075
|
"maxItems": 3
|
|
6156
7076
|
},
|
|
6157
|
-
"color": {
|
|
6158
|
-
"type": "string",
|
|
6159
|
-
"description": "hex #rrggbb"
|
|
6160
|
-
},
|
|
6161
7077
|
"parentUuid": {
|
|
6162
7078
|
"type": "string",
|
|
6163
|
-
"description": "
|
|
7079
|
+
"description": "a group (or any object) to put it in"
|
|
6164
7080
|
},
|
|
6165
|
-
"
|
|
7081
|
+
"folder": {
|
|
6166
7082
|
"type": "string",
|
|
6167
|
-
"
|
|
6168
|
-
"static",
|
|
6169
|
-
"dynamic"
|
|
6170
|
-
],
|
|
6171
|
-
"description": "default static"
|
|
7083
|
+
"description": "Explorer folder (default \"Imported models\")"
|
|
6172
7084
|
},
|
|
6173
7085
|
"castShadow": {
|
|
6174
|
-
"type": "boolean"
|
|
6175
|
-
"description": "cast a shadow (on by default)"
|
|
7086
|
+
"type": "boolean"
|
|
6176
7087
|
},
|
|
6177
7088
|
"receiveShadow": {
|
|
6178
|
-
"type": "boolean"
|
|
6179
|
-
|
|
7089
|
+
"type": "boolean"
|
|
7090
|
+
},
|
|
7091
|
+
"source": {
|
|
7092
|
+
"type": "string",
|
|
7093
|
+
"description": "where it came from (kept with the model)"
|
|
7094
|
+
},
|
|
7095
|
+
"licence": {
|
|
7096
|
+
"type": "string",
|
|
7097
|
+
"description": "its licence, e.g. CC0"
|
|
6180
7098
|
}
|
|
6181
7099
|
},
|
|
6182
|
-
"
|
|
6183
|
-
"vertices",
|
|
6184
|
-
"faces"
|
|
6185
|
-
],
|
|
6186
|
-
"description": "A mesh from raw data: vertices [[x, y, z], …] and faces [[i, j, k] or [i, j, k, l] …] (indices into vertices, counter-clockwise seen from outside; polygons of up to 32 corners are fanned, so keep them convex), optional uvs (one [u, v] per vertex). Up to 20000 vertices and 20000 faces; normals are computed (smooth: true for smooth shading, flatShading: true for hard facets). Colour it as you make it: materials [{color, roughness, metalness, …}] (up to 16 slots) with faceMaterials [slot per face, same order as faces] for parts in different colours; or colors [[r, g, b] 0-1, one per vertex] for a painted gradient (multiplied by the material colour). Material slots last through edit_shape {action: 'mesh'}; vertex colours last only while an edit keeps the vertex count. subdivide: 1 or 2 smooths it (Catmull-Clark: a box of six quads becomes a rounded pebble, a few quads become a soft organic shape; each level about four times the faces, checked against the caps). Edit it afterwards with edit_shape {action: 'mesh'}, or send new vertices with edit_shape {action: 'update'}. Returns the uuid."
|
|
7100
|
+
"description": "Bring in a 3D model file: glTF 2.0 (.glb, or .gltf JSON with everything embedded) or Wavefront .obj, as data (base64; for a big file send chunk: {id, index, total} parts, each a multiple of 4 base64 characters) or an https url (public addresses only, ≤ 25 MB; the file is copied into the library first, so the scene never needs the address again). Named sub-meshes become named children, returned in parts with uuids, so animate_parts can move them (a lid, a wheel, a door). position / rotation (radians) / scale as create_objects; with parentUuid they are the group's own space. castShadow / receiveShadow apply to every mesh in it. A model is data: nothing in it runs, and a file that points at outside files is refused. One undo step; everyone sees it."
|
|
6187
7101
|
},
|
|
6188
7102
|
"shapes": {
|
|
6189
7103
|
"type": "array",
|
|
@@ -6230,13 +7144,13 @@
|
|
|
6230
7144
|
"title": "Make a shape",
|
|
6231
7145
|
"readOnlyHint": false,
|
|
6232
7146
|
"destructiveHint": true,
|
|
6233
|
-
"openWorldHint":
|
|
7147
|
+
"openWorldHint": true
|
|
6234
7148
|
}
|
|
6235
7149
|
},
|
|
6236
7150
|
{
|
|
6237
7151
|
"name": "edit_shape",
|
|
6238
7152
|
"title": "Reshape or model objects",
|
|
6239
|
-
"description": "Change the shape of objects that exist: params = new size / segments / type in place, mesh = model faces and vertices (extrude, inset, bevel, subdivide, weld, smooth, dissolve, make a face), update = new vertices / faces for a mesh made from data (replace it, or patch a range), pivot = the point an object turns about, pivot_group = a group at a joint so several parts swing together.\nCall it as {\"action\": \"params\", \"params\": {…its fields…}}; each action's fields and limits are in its object below.\nTake a screenshot after each change to check your work.",
|
|
7153
|
+
"description": "Change the shape of objects that exist: params = new size / segments / type in place (on a 3D text: its words, font, size, depth, bevel, align, wrap width, anchor, colours), mesh = model faces and vertices (extrude, inset, bevel, subdivide, weld, smooth, dissolve, make a face), update = new vertices / faces for a mesh made from data (replace it, or patch a range), duplicate = copies of an object in a row, or its mirror image (a left arm → the right one), pivot = the point an object turns about, pivot_group = a group at a joint so several parts swing together.\nCall it as {\"action\": \"params\", \"params\": {…its fields…}}; each action's fields and limits are in its object below.\nTake a screenshot after each change to check your work.",
|
|
6240
7154
|
"inputSchema": {
|
|
6241
7155
|
"type": "object",
|
|
6242
7156
|
"properties": {
|
|
@@ -6246,6 +7160,7 @@
|
|
|
6246
7160
|
"params",
|
|
6247
7161
|
"mesh",
|
|
6248
7162
|
"update",
|
|
7163
|
+
"duplicate",
|
|
6249
7164
|
"pivot",
|
|
6250
7165
|
"pivot_group"
|
|
6251
7166
|
],
|
|
@@ -6292,7 +7207,7 @@
|
|
|
6292
7207
|
},
|
|
6293
7208
|
"params": {
|
|
6294
7209
|
"type": "object",
|
|
6295
|
-
"description": "param name → value; sizes
|
|
7210
|
+
"description": "param name → value; sizes from 0.001 m to 1 km (the same for every primitive), segment counts to their range"
|
|
6296
7211
|
},
|
|
6297
7212
|
"path": {
|
|
6298
7213
|
"type": "array",
|
|
@@ -6339,7 +7254,7 @@
|
|
|
6339
7254
|
"required": [
|
|
6340
7255
|
"updates"
|
|
6341
7256
|
],
|
|
6342
|
-
"description": "Reshape existing objects in place (they keep uuid, transform, material and flows): change a primitive's params (the keys list_scene shows under geometry, e.g. {width, height, depth} for a Box, {radiusTop, radiusBottom, height, radialSegments} for a Cylinder, {segments, phiLength} for a Lathe, {depth, bevel} for an extrusion), or its TYPE (box → Cylinder) with params on top of the new type's defaults. A tube (create_shape {action: 'tube'}) takes path, radius / radii, closed. An object whose vertices were hand-edited refuses unless force: true (the rebuild replaces those edits). Up to 100 objects per call, one undo step."
|
|
7257
|
+
"description": "Reshape existing objects in place (they keep uuid, transform, material and flows): change a primitive's params (the keys list_scene shows under geometry, e.g. {width, height, depth} for a Box, {radiusTop, radiusBottom, height, radialSegments} for a Cylinder, {segments, phiLength} for a Lathe, {depth, bevel} for an extrusion), or its TYPE (box → Cylinder) with params on top of the new type's defaults. A tube (create_shape {action: 'tube'}) takes path, radius / radii, closed. A 3D text (create_shape {action: 'text'}) takes its text fields as params (text, font, size, depth, bevel, align, maxWidth, anchor, color …). An object whose vertices were hand-edited refuses unless force: true (the rebuild replaces those edits). Up to 100 objects per call, one undo step."
|
|
6343
7258
|
},
|
|
6344
7259
|
"mesh": {
|
|
6345
7260
|
"type": "object",
|
|
@@ -6574,14 +7489,31 @@
|
|
|
6574
7489
|
"colors": {
|
|
6575
7490
|
"type": "array",
|
|
6576
7491
|
"items": {
|
|
6577
|
-
"
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
7492
|
+
"anyOf": [
|
|
7493
|
+
{
|
|
7494
|
+
"type": "array",
|
|
7495
|
+
"items": {
|
|
7496
|
+
"type": "number"
|
|
7497
|
+
},
|
|
7498
|
+
"minItems": 3,
|
|
7499
|
+
"maxItems": 3
|
|
7500
|
+
},
|
|
7501
|
+
{
|
|
7502
|
+
"type": "string",
|
|
7503
|
+
"description": "#rrggbb"
|
|
7504
|
+
}
|
|
7505
|
+
]
|
|
6583
7506
|
},
|
|
6584
|
-
"maxItems": 20000
|
|
7507
|
+
"maxItems": 20000,
|
|
7508
|
+
"description": "as create_mesh: [r, g, b] (sRGB unless colorSpace is \"linear\") or \"#rrggbb\" per vertex"
|
|
7509
|
+
},
|
|
7510
|
+
"colorSpace": {
|
|
7511
|
+
"type": "string",
|
|
7512
|
+
"enum": [
|
|
7513
|
+
"srgb",
|
|
7514
|
+
"linear"
|
|
7515
|
+
],
|
|
7516
|
+
"description": "how [r, g, b] colors numbers are meant: \"srgb\" (default — like a colour picker, as material colours are) or \"linear\"; hex is always sRGB"
|
|
6585
7517
|
},
|
|
6586
7518
|
"faceMaterials": {
|
|
6587
7519
|
"type": "array",
|
|
@@ -6606,6 +7538,51 @@
|
|
|
6606
7538
|
],
|
|
6607
7539
|
"description": "New data for a mesh create_shape {action: 'mesh'} made, by uuid, as ONE undo step: mode \"replace\" sends every vertex and face again (the same fields and caps as create_shape {action: 'mesh'}, subdivide included); mode \"patch\" replaces vertices from offset on (vertices[0] lands on index offset) and keeps the faces — for moving part of a mesh made in this tab (after a reload, send \"replace\"). uvs/colors patch the same way. Primitives use edit_shape {action: 'params'}; to model any mesh use edit_shape {action: 'mesh'}."
|
|
6608
7540
|
},
|
|
7541
|
+
"duplicate": {
|
|
7542
|
+
"type": "object",
|
|
7543
|
+
"properties": {
|
|
7544
|
+
"uuid": {
|
|
7545
|
+
"type": "string",
|
|
7546
|
+
"description": "the object to copy"
|
|
7547
|
+
},
|
|
7548
|
+
"count": {
|
|
7549
|
+
"type": "integer",
|
|
7550
|
+
"minimum": 1,
|
|
7551
|
+
"maximum": 50,
|
|
7552
|
+
"description": "copies (default 1)"
|
|
7553
|
+
},
|
|
7554
|
+
"offset": {
|
|
7555
|
+
"type": "array",
|
|
7556
|
+
"items": {
|
|
7557
|
+
"type": "number"
|
|
7558
|
+
},
|
|
7559
|
+
"minItems": 3,
|
|
7560
|
+
"maxItems": 3,
|
|
7561
|
+
"description": "[x, y, z] metres between copies in the parent's space; with mirror it moves the mirror image (default [0, 0, 0])"
|
|
7562
|
+
},
|
|
7563
|
+
"mirror": {
|
|
7564
|
+
"type": "string",
|
|
7565
|
+
"enum": [
|
|
7566
|
+
"x",
|
|
7567
|
+
"y",
|
|
7568
|
+
"z"
|
|
7569
|
+
],
|
|
7570
|
+
"description": "the axis the mirror flips: x makes a left part the right one"
|
|
7571
|
+
},
|
|
7572
|
+
"parentUuid": {
|
|
7573
|
+
"type": "string",
|
|
7574
|
+
"description": "a group (or any object) to put the copies in"
|
|
7575
|
+
},
|
|
7576
|
+
"name": {
|
|
7577
|
+
"type": "string",
|
|
7578
|
+
"description": "the copies' name (numbered when several)"
|
|
7579
|
+
}
|
|
7580
|
+
},
|
|
7581
|
+
"required": [
|
|
7582
|
+
"uuid"
|
|
7583
|
+
],
|
|
7584
|
+
"description": "Copy an object you built (its children, materials, behaviour and physics come along; nothing is resent): count copies stepping by offset [x, y, z] metres in its parent's space (default: a row to the side), or mirror \"x\"|\"y\"|\"z\" = the mirror image across that plane through the PARENT's centre (in a group: its centre line — a left arm or ear becomes the right one; at the scene root: the world's), its triangles re-wound so normals stay right (Box and even-segment round shapes keep their params). parentUuid nests the copies (they keep their place in the world). One undo step; everyone sees it. For tens to hundreds of copies spread over a terrain or mesh, use scatter with source: <uuid>."
|
|
7585
|
+
},
|
|
6609
7586
|
"pivot": {
|
|
6610
7587
|
"type": "object",
|
|
6611
7588
|
"properties": {
|
|
@@ -6707,7 +7684,7 @@
|
|
|
6707
7684
|
{
|
|
6708
7685
|
"name": "set_look",
|
|
6709
7686
|
"title": "Materials, shaders, sky, light and post effects",
|
|
6710
|
-
"description": "How things look: material = colour, roughness, metal, glow, see-through and textures (a library image, a CC0 material by name or an https image); list_materials / get_material read them; shader / edit_shader / assign_shader / shader_nodes = node shaders on objects; sky = the sky image, background, fog and exposure; light = the sun, ambient and environment lights; environment reads both; post / get_post / post_graph = the scene's post effects (bloom, colour grade, vignette); sky, light and post change the whole scene, so the host is asked first; unwrap / uv = texture mapping and tiling.\nCall it as {\"action\": \"material\", \"material\": {…its fields…}}; each action's fields and limits are in its object below.\nTake a screenshot after each change to check your work.",
|
|
7687
|
+
"description": "How things look: material = colour, roughness, metal, glow, see-through and textures (a library image, a CC0 material by name or an https image); list_materials / get_material read them; shader / edit_shader / assign_shader / shader_nodes = node shaders on objects; sky = the sky image, background, fog and exposure; light = the sun, ambient and environment lights; environment reads both; post / get_post / post_graph = the scene's post effects (bloom, colour grade, vignette); sky, light and post change the whole scene, so the host is asked first; unwrap / uv = texture mapping and tiling; quality = ask the person to raise THIS device's quality (a card on their screen, Allow / Keep) when a phone hides the post effects to stay smooth.\nCall it as {\"action\": \"material\", \"material\": {…its fields…}}; each action's fields and limits are in its object below.\nTake a screenshot after each change to check your work.",
|
|
6711
7688
|
"inputSchema": {
|
|
6712
7689
|
"type": "object",
|
|
6713
7690
|
"properties": {
|
|
@@ -6728,7 +7705,10 @@
|
|
|
6728
7705
|
"uv",
|
|
6729
7706
|
"sky",
|
|
6730
7707
|
"light",
|
|
6731
|
-
"environment"
|
|
7708
|
+
"environment",
|
|
7709
|
+
"quality",
|
|
7710
|
+
"preset",
|
|
7711
|
+
"bake"
|
|
6732
7712
|
],
|
|
6733
7713
|
"description": "What to do. Put its fields in the object named after the action."
|
|
6734
7714
|
},
|
|
@@ -7036,7 +8016,7 @@
|
|
|
7036
8016
|
]
|
|
7037
8017
|
}
|
|
7038
8018
|
},
|
|
7039
|
-
"description": "The shader node catalog: each type with what it does, its params (which become uniforms), inputs and outputs."
|
|
8019
|
+
"description": "The shader node catalog: each type with what it does, its params (which become uniforms), inputs and outputs. UV warps include polarCoordinates, twirl and rotateUV; the glsl node keeps the type wired into a, b and c (float, vec2, vec3, vec4) and returns its declared type."
|
|
7040
8020
|
},
|
|
7041
8021
|
"post": {
|
|
7042
8022
|
"type": "object",
|
|
@@ -7098,7 +8078,7 @@
|
|
|
7098
8078
|
"description": "with confirmId: seconds to wait for the answer (up to 60)"
|
|
7099
8079
|
}
|
|
7100
8080
|
},
|
|
7101
|
-
"description": "The scene's post effects (bloom, huesaturation, brightnesscontrast, tonemapping, vignette, grain, chromaticaberration, ao, lut, pixelation, scanlines, dotscreen, smaa; set_look {action: 'get_post'} lists every param). effects: [{kind, params, enabled, at, remove}], matched to what is there by id or kind, so repeating a call does not stack a second bloom; replace: true drops the rest; the stack order is the order of effect. This changes the whole scene's look: the first call returns needsConfirm and the host is asked; repeat it with confirmId. One undo step."
|
|
8081
|
+
"description": "The scene's post effects (bloom, huesaturation, brightnesscontrast, tonemapping, vignette, grain, chromaticaberration, lensflare, godrays, volumetricfog, ao, lut, pixelation, scanlines, dotscreen, antialias {method: traa | smaa} — it replaces the older smaa; set_look {action: 'get_post'} lists every param). effects: [{kind, params, enabled, at, remove}], matched to what is there by id or kind, so repeating a call does not stack a second bloom; replace: true drops the rest; the stack order is the order of effect. This changes the whole scene's look: the first call returns needsConfirm and the host is asked; repeat it with confirmId. One undo step. The answer says shownHere: false with a reason when this screen does not draw post effects (reason \"quality tier\" = the device turned them off to keep its frame rate, usual on a phone: the scene keeps them; say so, and offer to ask with set_look {action: 'quality'})."
|
|
7102
8082
|
},
|
|
7103
8083
|
"get_post": {
|
|
7104
8084
|
"type": "object",
|
|
@@ -7233,7 +8213,7 @@
|
|
|
7233
8213
|
"properties": {
|
|
7234
8214
|
"preset": {
|
|
7235
8215
|
"type": "string",
|
|
7236
|
-
"description": "studio, daylight, sunset, night, classic, clearsky, meadow, sunrise, starlight, photostudio"
|
|
8216
|
+
"description": "studio, daylight, sunset, night, classic, clearsky, meadow, sunrise, starlight, photostudio, product, cinematic, stylised"
|
|
7237
8217
|
},
|
|
7238
8218
|
"hdri": {
|
|
7239
8219
|
"type": [
|
|
@@ -7241,7 +8221,7 @@
|
|
|
7241
8221
|
"object",
|
|
7242
8222
|
"null"
|
|
7243
8223
|
],
|
|
7244
|
-
"description": "a sky name (clearsky, meadow, sunrise, starlight, photostudio), null for none, or {name | hash, rotation (degrees), intensity 0-4, blur 0-1, background (false = light only), quality, minQuality}",
|
|
8224
|
+
"description": "a sky name (clearsky, meadow, sunrise, starlight, photostudio), a search_assets HDRI id (\"cc0:polyhaven/<id>\": fetched into the library once, CC0, credited) or \"lib:<hash>\", null for none, or {name | hash, rotation (degrees), intensity 0-4, blur 0-1, background (false = light only), quality, minQuality}. A sky file you hold yourself: assets upload gives its hash",
|
|
7245
8225
|
"properties": {
|
|
7246
8226
|
"name": {
|
|
7247
8227
|
"type": "string"
|
|
@@ -7339,7 +8319,7 @@
|
|
|
7339
8319
|
"description": "with confirmId: seconds to wait for the answer (up to 60)"
|
|
7340
8320
|
}
|
|
7341
8321
|
},
|
|
7342
|
-
"description": "The sky and the air: a look preset (studio, daylight, sunset, night, classic, clearsky, meadow, sunrise, starlight, photostudio), a sky image by name (clearsky, meadow, sunrise, starlight, photostudio; or {hash} of an HDR in the library — never a URL) with rotation, intensity, blur and Sky quality (auto / standard / high / max, plus a minimum), a background colour or {top, bottom} gradient, fog ({color, near, far} in metres, or {color, density}; null = none) and exposure. \"Make it night\": preset night or hdri starlight + a dark fog. Changes the whole scene's look, so the host is asked first: it answers needsConfirm, then repeat with confirmId. One undo step."
|
|
8322
|
+
"description": "The sky and the air: a look preset (studio, daylight, sunset, night, classic, clearsky, meadow, sunrise, starlight, photostudio, product, cinematic, stylised), a sky image by name (clearsky, meadow, sunrise, starlight, photostudio; a assets {action: 'search'} HDRI id \"cc0:polyhaven/<id>\" (fetched into the library once) or \"lib:<hash>\"; or {hash} of an HDR in the library — upload your own .hdr / .exr with assets upload; never a URL) with rotation, intensity, blur and Sky quality (auto / standard / high / max, plus a minimum), a background colour or {top, bottom} gradient, fog ({color, near, far} in metres, or {color, density}; null = none) and exposure. \"Make it night\": preset night or hdri starlight + a dark fog. Changes the whole scene's look, so the host is asked first: it answers needsConfirm, then repeat with confirmId. One undo step."
|
|
7343
8323
|
},
|
|
7344
8324
|
"light": {
|
|
7345
8325
|
"type": "object",
|
|
@@ -7475,6 +8455,102 @@
|
|
|
7475
8455
|
}
|
|
7476
8456
|
},
|
|
7477
8457
|
"description": "Read the scene's sky and light: the preset, the sky image and its quality, background, fog, exposure, the sun and ambient, the environment lights (ids for set_look {action: 'light'}), the light objects (uuid, shadows) and the spawn / opening view; plus the preset and sky names. Read this before changing the look."
|
|
8458
|
+
},
|
|
8459
|
+
"quality": {
|
|
8460
|
+
"type": "object",
|
|
8461
|
+
"properties": {
|
|
8462
|
+
"level": {
|
|
8463
|
+
"type": "string",
|
|
8464
|
+
"enum": [
|
|
8465
|
+
"high",
|
|
8466
|
+
"medium",
|
|
8467
|
+
"auto",
|
|
8468
|
+
"restore"
|
|
8469
|
+
]
|
|
8470
|
+
},
|
|
8471
|
+
"reason": {
|
|
8472
|
+
"type": "string",
|
|
8473
|
+
"description": "a few words for the card, e.g. \"so the portal glow shows\""
|
|
8474
|
+
},
|
|
8475
|
+
"confirmId": {
|
|
8476
|
+
"type": "string",
|
|
8477
|
+
"description": "the id a needsConfirm answer gave: repeat the call with it to get the host's answer and apply"
|
|
8478
|
+
},
|
|
8479
|
+
"wait": {
|
|
8480
|
+
"type": "number",
|
|
8481
|
+
"description": "with confirmId: seconds to wait for the answer (up to 60)"
|
|
8482
|
+
}
|
|
8483
|
+
},
|
|
8484
|
+
"description": "Ask the person to raise THIS device's quality (their Settings ▸ Scene ▸ Performance ▸ Quality preset). Use it when set_look {action: 'post'} / set_look {action: 'get_post'} / screenshot say shownHere false or postEffects \"unavailable\" with reason \"quality tier\": a phone turns post effects off to keep its frame rate. The person gets a card on their own screen (Allow / Keep) and answers; nothing changes until they allow, nothing changes on anyone else's device, nothing goes into the scene. The first call returns needsConfirm; call again with confirmId (and wait) for the answer. level: high (full quality, post effects on), medium, auto (the device decides), restore (put back what it was before you asked; no question). Suggest it out loud first: \"Your phone hides the glow to stay smooth; shall I ask it for high quality?\""
|
|
8485
|
+
},
|
|
8486
|
+
"preset": {
|
|
8487
|
+
"type": "object",
|
|
8488
|
+
"properties": {
|
|
8489
|
+
"preset": {
|
|
8490
|
+
"type": "string",
|
|
8491
|
+
"enum": [
|
|
8492
|
+
"product",
|
|
8493
|
+
"cinematic",
|
|
8494
|
+
"stylised"
|
|
8495
|
+
]
|
|
8496
|
+
},
|
|
8497
|
+
"confirmId": {
|
|
8498
|
+
"type": "string",
|
|
8499
|
+
"description": "the id a needsConfirm answer gave: repeat the call with it to get the host's answer and apply"
|
|
8500
|
+
},
|
|
8501
|
+
"wait": {
|
|
8502
|
+
"type": "number",
|
|
8503
|
+
"description": "with confirmId: seconds to wait for the answer (up to 60)"
|
|
8504
|
+
}
|
|
8505
|
+
},
|
|
8506
|
+
"required": [
|
|
8507
|
+
"preset"
|
|
8508
|
+
],
|
|
8509
|
+
"description": "A pro look in one step: preset product (Product shot: studio light, clean AO, neutral tone mapping), cinematic (low sun, volumetric fog, god rays, lens flare, film grain, ACES) or stylised (bright sky, punchy colour, AgX). Sets the sky + light, exposure, tone mapping and the post effects together as ONE undo step, saved in the scene; each device draws its own share (a phone marches less fog, a headset leaves fog / god rays / lens flare out). Replaces the scene's post effects. Changes the whole scene's look: the first call returns needsConfirm and the host is asked; repeat it with confirmId."
|
|
8510
|
+
},
|
|
8511
|
+
"bake": {
|
|
8512
|
+
"type": "object",
|
|
8513
|
+
"properties": {
|
|
8514
|
+
"do": {
|
|
8515
|
+
"type": "string",
|
|
8516
|
+
"enum": [
|
|
8517
|
+
"bake",
|
|
8518
|
+
"status",
|
|
8519
|
+
"cancel",
|
|
8520
|
+
"clear",
|
|
8521
|
+
"strength"
|
|
8522
|
+
]
|
|
8523
|
+
},
|
|
8524
|
+
"quality": {
|
|
8525
|
+
"type": "string",
|
|
8526
|
+
"enum": [
|
|
8527
|
+
"draft",
|
|
8528
|
+
"normal",
|
|
8529
|
+
"high"
|
|
8530
|
+
]
|
|
8531
|
+
},
|
|
8532
|
+
"light": {
|
|
8533
|
+
"type": "number",
|
|
8534
|
+
"minimum": 0,
|
|
8535
|
+
"maximum": 3,
|
|
8536
|
+
"description": "do strength: bounce light strength (1 = as baked)"
|
|
8537
|
+
},
|
|
8538
|
+
"ao": {
|
|
8539
|
+
"type": "number",
|
|
8540
|
+
"minimum": 0,
|
|
8541
|
+
"maximum": 1,
|
|
8542
|
+
"description": "do strength: corner shadow strength"
|
|
8543
|
+
},
|
|
8544
|
+
"confirmId": {
|
|
8545
|
+
"type": "string",
|
|
8546
|
+
"description": "the id a needsConfirm answer gave: repeat the call with it to get the host's answer and apply"
|
|
8547
|
+
},
|
|
8548
|
+
"wait": {
|
|
8549
|
+
"type": "number",
|
|
8550
|
+
"description": "with confirmId: seconds to wait for the answer (up to 60)"
|
|
8551
|
+
}
|
|
8552
|
+
},
|
|
8553
|
+
"description": "Bake light (Pro look): soft shadows in corners (AO) and light bouncing off walls, worked out once for every object that does not move (no physics body that moves, no flow or clip animation) and saved with the scene — everyone sees it, it undoes as one step. do: bake (the default; runs on this device, takes seconds; asks the host first like set_look {action: 'post'}), status (read: baked?, stale = things moved since, notes such as objects with overlapping UVs that got AO only), cancel, clear (remove it), strength (light 0-3, ao 0-1). quality: draft, normal, high. Bake AFTER the layout is final; bake again when status says stale. wait: seconds to wait for the result (default 60, max 120)."
|
|
7478
8554
|
}
|
|
7479
8555
|
},
|
|
7480
8556
|
"required": [
|
|
@@ -7491,7 +8567,7 @@
|
|
|
7491
8567
|
{
|
|
7492
8568
|
"name": "run",
|
|
7493
8569
|
"title": "See and check what the game does",
|
|
7494
|
-
"description": "What the game does when it runs: inspect = when each event and action last fired, the game state and variables, errors, and why a node did not fire (pass node or object); validate = what would not work when someone presses Play, each with its fix; logs = the tab's recent errors, warnings and toasts.\nCall it as {\"action\": \"inspect\", \"inspect\": {…its fields…}}; each action's fields and limits are in its object below.\nTake a screenshot after each change to check your work.",
|
|
8570
|
+
"description": "What the game does when it runs: inspect = when each event and action last fired, the game state and variables, errors, and why a node did not fire (pass node or object); validate = what would not work when someone presses Play, each with its fix; logs = the tab's recent errors, warnings and toasts; photo = a path-traced still of the person's view (a PC peer renders it for a Quest), optionally saved to the Library.\nCall it as {\"action\": \"inspect\", \"inspect\": {…its fields…}}; each action's fields and limits are in its object below.\nTake a screenshot after each change to check your work.",
|
|
7495
8571
|
"inputSchema": {
|
|
7496
8572
|
"type": "object",
|
|
7497
8573
|
"properties": {
|
|
@@ -7500,7 +8576,8 @@
|
|
|
7500
8576
|
"enum": [
|
|
7501
8577
|
"inspect",
|
|
7502
8578
|
"validate",
|
|
7503
|
-
"logs"
|
|
8579
|
+
"logs",
|
|
8580
|
+
"photo"
|
|
7504
8581
|
],
|
|
7505
8582
|
"description": "What to do. Put its fields in the object named after the action."
|
|
7506
8583
|
},
|
|
@@ -7554,6 +8631,32 @@
|
|
|
7554
8631
|
}
|
|
7555
8632
|
},
|
|
7556
8633
|
"description": "The page's recent log: errors, warnings, console lines and the toasts people saw, oldest first. Pass since (the \"now\" of the previous answer) for only what is new. status shows the newest few."
|
|
8634
|
+
},
|
|
8635
|
+
"photo": {
|
|
8636
|
+
"type": "object",
|
|
8637
|
+
"properties": {
|
|
8638
|
+
"samples": {
|
|
8639
|
+
"type": "integer",
|
|
8640
|
+
"minimum": 1,
|
|
8641
|
+
"maximum": 2048,
|
|
8642
|
+
"description": "path-tracing samples (more = cleaner, slower; default 256)"
|
|
8643
|
+
},
|
|
8644
|
+
"seconds": {
|
|
8645
|
+
"type": "number",
|
|
8646
|
+
"minimum": 2,
|
|
8647
|
+
"maximum": 600,
|
|
8648
|
+
"description": "time limit in seconds (default 60)"
|
|
8649
|
+
},
|
|
8650
|
+
"denoise": {
|
|
8651
|
+
"type": "boolean",
|
|
8652
|
+
"description": "smooth the remaining noise (default true)"
|
|
8653
|
+
},
|
|
8654
|
+
"save": {
|
|
8655
|
+
"type": "boolean",
|
|
8656
|
+
"description": "also save the PNG to the Library under Scene shots/<scene> (default false)"
|
|
8657
|
+
}
|
|
8658
|
+
},
|
|
8659
|
+
"description": "A PHOTO of the person's current view: a path-traced still (soft shadows, real reflections and glass), rendered in their tab while they keep working; their view never moves. It takes seconds to a minute: samples (1-2048, default 256) or seconds (2-600, default 60), whichever comes first. On a Quest or a weak phone a PC in the session renders it; with no PC it is a normal still and the answer says why. Post effects, flat text, particles and your own GLSL are not in a photo (notShown lists what was left out). save: true also files the PNG in the Library under Scene shots. Use it when the person asks for a photo, a render or a nice picture of the scene; for checking your work use screenshot."
|
|
7557
8660
|
}
|
|
7558
8661
|
},
|
|
7559
8662
|
"required": [
|
|
@@ -7570,7 +8673,7 @@
|
|
|
7570
8673
|
{
|
|
7571
8674
|
"name": "assets",
|
|
7572
8675
|
"title": "Images and assets",
|
|
7573
|
-
"description": "Assets to build with: search = find models, prefabs, sounds, images, CC0 materials and HDRIs by words (library, packs, Poly Haven); place = put a found model or prefab into the scene; prefab = keep objects as a reusable prefab, or place copies of one; image = put an image into the library (an https URL, base64 data, or a canvas you describe) and get its hash for textures.\nCall it as {\"action\": \"search\", \"search\": {…its fields…}}; each action's fields and limits are in its object below.\nTake a screenshot after each change to check your work.",
|
|
8676
|
+
"description": "Assets to build with: search = find models, prefabs, sounds, images, CC0 materials and HDRIs by words (library, packs, Poly Haven); place = put a found model or prefab into the scene; prefab = keep objects as a reusable prefab, or place copies of one; image = put an image into the library (an https URL, base64 data, or a canvas you describe) and get its hash for textures; upload = put a SOUND or an HDR SKY you hold as base64 bytes (your own music, a file you fetched) into the library and get its hash for effects sound / music or set_look sky; fonts = the fonts 3D text can use (bundled, the library's, the scene's).\nCall it as {\"action\": \"search\", \"search\": {…its fields…}}; each action's fields and limits are in its object below.\nTake a screenshot after each change to check your work.",
|
|
7574
8677
|
"inputSchema": {
|
|
7575
8678
|
"type": "object",
|
|
7576
8679
|
"properties": {
|
|
@@ -7580,7 +8683,9 @@
|
|
|
7580
8683
|
"search",
|
|
7581
8684
|
"place",
|
|
7582
8685
|
"prefab",
|
|
7583
|
-
"image"
|
|
8686
|
+
"image",
|
|
8687
|
+
"upload",
|
|
8688
|
+
"fonts"
|
|
7584
8689
|
],
|
|
7585
8690
|
"description": "What to do. Put its fields in the object named after the action."
|
|
7586
8691
|
},
|
|
@@ -7626,7 +8731,7 @@
|
|
|
7626
8731
|
"description": "default 12"
|
|
7627
8732
|
}
|
|
7628
8733
|
},
|
|
7629
|
-
"description": "Find assets to build with, by words and kind: models and prefabs to place, sounds, images, CC0 materials and HDRIs. Searches the shared library, the
|
|
8734
|
+
"description": "Find assets to build with, by words and kind: models and prefabs to place, sounds, images, CC0 materials and HDRIs. Searches the shared library, the packs (models, and the sounds of the sound packs: pack:<name>/<file>), your prefabs and Poly Haven. Each result has an id, name, kind, source, licence, size when known, and how to use it. Read-only."
|
|
7630
8735
|
},
|
|
7631
8736
|
"place": {
|
|
7632
8737
|
"type": "object",
|
|
@@ -7669,7 +8774,7 @@
|
|
|
7669
8774
|
"required": [
|
|
7670
8775
|
"asset"
|
|
7671
8776
|
],
|
|
7672
|
-
"description": "Place a model or
|
|
8777
|
+
"description": "Place a model or prefab found with assets {action: 'search'}, the way dragging it from the Asset Browser does (replicated, one undo step). count + spacing make a row; yaw turns it. Returns the new uuids. A model by URL goes through import_model instead."
|
|
7673
8778
|
},
|
|
7674
8779
|
"prefab": {
|
|
7675
8780
|
"type": "object",
|
|
@@ -7716,7 +8821,7 @@
|
|
|
7716
8821
|
"type": "number"
|
|
7717
8822
|
}
|
|
7718
8823
|
},
|
|
7719
|
-
"description": "Prefabs (stamps): mode \"save\" keeps objects (with their materials, flows and behaviours) as a
|
|
8824
|
+
"description": "Prefabs (stamps): mode \"save\" keeps objects (with their materials, flows and behaviours) as a prefab in this person's library and returns its id; mode \"place\" puts copies of a prefab into the scene with fresh ids (count + spacing for a row), one undo step."
|
|
7720
8825
|
},
|
|
7721
8826
|
"image": {
|
|
7722
8827
|
"type": "object",
|
|
@@ -7830,6 +8935,47 @@
|
|
|
7830
8935
|
}
|
|
7831
8936
|
},
|
|
7832
8937
|
"description": "Put an image into the shared library (Explorer) and get its hash, for texture slots (update_objects materialParams.map, set_look {action: 'material'}) and image nodes. Give exactly one source: `url` (https, the site must allow other origins), `data` (base64, also how to pass an image you generated), or `canvas` (draw one from shapes, gradients, checkers and noise: textures, signs, labels). It is re-encoded here, so nothing in the file survives but its pixels. Limits: 16 MB in, 4096 px on the long side (larger is scaled down), a canvas 2048 px and 500 ops. One undo step; editors and admins only."
|
|
8938
|
+
},
|
|
8939
|
+
"upload": {
|
|
8940
|
+
"type": "object",
|
|
8941
|
+
"properties": {
|
|
8942
|
+
"data": {
|
|
8943
|
+
"type": "string",
|
|
8944
|
+
"description": "the file as base64 (or this chunk's part of it)"
|
|
8945
|
+
},
|
|
8946
|
+
"chunk": {
|
|
8947
|
+
"type": "object",
|
|
8948
|
+
"description": "{id, index (from 0), total}: one part of a big file; it lands when the last part arrives",
|
|
8949
|
+
"properties": {
|
|
8950
|
+
"id": {
|
|
8951
|
+
"type": "string"
|
|
8952
|
+
},
|
|
8953
|
+
"index": {
|
|
8954
|
+
"type": "integer"
|
|
8955
|
+
},
|
|
8956
|
+
"total": {
|
|
8957
|
+
"type": "integer"
|
|
8958
|
+
}
|
|
8959
|
+
}
|
|
8960
|
+
},
|
|
8961
|
+
"name": {
|
|
8962
|
+
"type": "string",
|
|
8963
|
+
"description": "a name for the library (the extension comes from the bytes)"
|
|
8964
|
+
},
|
|
8965
|
+
"folder": {
|
|
8966
|
+
"type": "string",
|
|
8967
|
+
"description": "Explorer folder (default \"Sounds\" or \"Skies\")"
|
|
8968
|
+
}
|
|
8969
|
+
},
|
|
8970
|
+
"required": [
|
|
8971
|
+
"data"
|
|
8972
|
+
],
|
|
8973
|
+
"description": "Put a SOUND or an HDR SKY you hold as bytes into the library and get its hash: your own generated music or ambience, or a file you fetched yourself (any site — the bytes come from you, so nothing needs the site to allow cross-origin reads). data = base64; a big file goes as chunk: {id, index, total} parts (each a multiple of 4 base64 characters). Sounds: WAV, OGG, MP3, FLAC, M4A or WebM up to 16 MB (decoded once to prove it is audio) → place it with effects sound {asset: hash} or music {asset: hash}. Skies: Radiance .hdr or OpenEXR up to 25 MB → set_look sky {hdri: {hash}}. The type comes from the bytes, never the name. Images go through image instead. Everyone in the session can pull it by hash."
|
|
8974
|
+
},
|
|
8975
|
+
"fonts": {
|
|
8976
|
+
"type": "object",
|
|
8977
|
+
"properties": {},
|
|
8978
|
+
"description": "The fonts 3D text can use: the bundled ones, the Library's (uploads and Google fonts, with their licences), and which the scene's texts use. Read only."
|
|
7833
8979
|
}
|
|
7834
8980
|
},
|
|
7835
8981
|
"required": [
|
|
@@ -7887,7 +9033,21 @@
|
|
|
7887
9033
|
"height": {
|
|
7888
9034
|
"type": "number",
|
|
7889
9035
|
"minimum": 0,
|
|
7890
|
-
"maximum":
|
|
9036
|
+
"maximum": 100,
|
|
9037
|
+
"description": "the highest peak, metres"
|
|
9038
|
+
},
|
|
9039
|
+
"amplitude": {
|
|
9040
|
+
"type": "number",
|
|
9041
|
+
"minimum": 0,
|
|
9042
|
+
"maximum": 40,
|
|
9043
|
+
"description": "the raw noise scale (height sets it for you)"
|
|
9044
|
+
},
|
|
9045
|
+
"paintBy": {
|
|
9046
|
+
"type": "string",
|
|
9047
|
+
"enum": [
|
|
9048
|
+
"height"
|
|
9049
|
+
],
|
|
9050
|
+
"description": "paint the layers by height: layer 0 low, the last layer on the peaks"
|
|
7891
9051
|
},
|
|
7892
9052
|
"detail": {
|
|
7893
9053
|
"type": "number"
|
|
@@ -7947,7 +9107,7 @@
|
|
|
7947
9107
|
"description": "reshape even though it was hand-sculpted (the sculpting is lost)"
|
|
7948
9108
|
}
|
|
7949
9109
|
},
|
|
7950
|
-
"description": "Make or change a
|
|
9110
|
+
"description": "Make or change a terrain. Without uuid it makes one (size metres, at position); with uuid it changes that one. Shape by noise: height (the highest peak, metres — the answer says the peak it got), detail (0.005-0.6), octaves, ridged, warp, edges (flat|island|bowl: island sinks the rim to 0 so it rises out of water; bowl raises the rim), seed; amplitude is the raw noise scale if you want it. Sculpt with ops [{op: raise|lower|smooth|flatten, at: [x, z] from the terrain's centre, radius, strength 0-1, height (metres, raise/lower), passes}] and paint with {op: \"paint\", at, radius, layer 0-3, strength}. layers: up to 4 {color, texture (a library hash or a pattern name like grass, sand, stone), tiling} — layer 0 covers the ground until you paint the others; paintBy: \"height\" paints them for you, layer 0 in the low ground up to the last on the peaks. One undo step."
|
|
7951
9111
|
},
|
|
7952
9112
|
"scatter": {
|
|
7953
9113
|
"type": "object",
|
|
@@ -7987,10 +9147,50 @@
|
|
|
7987
9147
|
},
|
|
7988
9148
|
"rules": {
|
|
7989
9149
|
"type": "object",
|
|
7990
|
-
"description": "{slope: [0, 25] degrees from flat, height: [min, max] metres, layer: {i: paint layer 0-3, min: 0-1}}"
|
|
9150
|
+
"description": "{slope: [0, 25] degrees from flat, height: [min, max] metres, layer: {i: paint layer 0-3, min: 0-1}, avoid: the same list as avoid}"
|
|
7991
9151
|
},
|
|
7992
9152
|
"seed": {
|
|
7993
|
-
"type": "integer"
|
|
9153
|
+
"type": "integer",
|
|
9154
|
+
"description": "the same seed puts them in the same spots; another seed, another layout"
|
|
9155
|
+
},
|
|
9156
|
+
"source": {
|
|
9157
|
+
"type": "string",
|
|
9158
|
+
"description": "the uuid of an object in the scene: scatter real copies of it (max 200) instead of asset"
|
|
9159
|
+
},
|
|
9160
|
+
"avoid": {
|
|
9161
|
+
"type": "array",
|
|
9162
|
+
"maxItems": 16,
|
|
9163
|
+
"items": {
|
|
9164
|
+
"anyOf": [
|
|
9165
|
+
{
|
|
9166
|
+
"type": "string"
|
|
9167
|
+
},
|
|
9168
|
+
{
|
|
9169
|
+
"type": "object",
|
|
9170
|
+
"properties": {
|
|
9171
|
+
"uuid": {
|
|
9172
|
+
"type": "string"
|
|
9173
|
+
},
|
|
9174
|
+
"position": {
|
|
9175
|
+
"type": "array",
|
|
9176
|
+
"items": {
|
|
9177
|
+
"type": "number"
|
|
9178
|
+
},
|
|
9179
|
+
"minItems": 3,
|
|
9180
|
+
"maxItems": 3
|
|
9181
|
+
},
|
|
9182
|
+
"radius": {
|
|
9183
|
+
"type": "number"
|
|
9184
|
+
}
|
|
9185
|
+
}
|
|
9186
|
+
}
|
|
9187
|
+
]
|
|
9188
|
+
},
|
|
9189
|
+
"description": "places to keep clear: an object uuid (its footprint), {uuid, radius} or {position, radius} (a circle, metres)"
|
|
9190
|
+
},
|
|
9191
|
+
"id": {
|
|
9192
|
+
"type": "string",
|
|
9193
|
+
"description": "a name for the set (default from the first asset); remove takes it"
|
|
7994
9194
|
},
|
|
7995
9195
|
"tint": {
|
|
7996
9196
|
"type": "number",
|
|
@@ -8018,7 +9218,7 @@
|
|
|
8018
9218
|
"required": [
|
|
8019
9219
|
"surface"
|
|
8020
9220
|
],
|
|
8021
|
-
"description": "Scatter many instances over a
|
|
9221
|
+
"description": "Scatter many instances over a terrain or any mesh (a forest on hills, rocks on a beach, flowers on a slope): asset = a primitive (Box, Sphere, Cone, Cylinder, Capsule, Dodecahedron) or a model id from assets {action: 'search'}, or assets = up to 8 mixed evenly. density per m² (or count), scale range, rules {slope: [min°, max°], height: [min, max] m, layer: {i, min}} keep them where they belong. Cheap instancing, seeded (the same on every peer; seed picks another layout). avoid (or rules.avoid) = up to 16 places nothing lands on: an object uuid (its footprint: a path, a house, a portal), {uuid, radius} or {position, radius} (a clear circle, metres). All the assets of one call make ONE set (id names it). source = the uuid of an object you built: up to 200 REAL copies of it (editable, with its children, materials and behaviour) instead of instances — for one or a few copies in a row or mirrored, use duplicate. Returns the set id (or the copies' uuids); remove: <set id> deletes a set. One undo step."
|
|
8022
9222
|
},
|
|
8023
9223
|
"water": {
|
|
8024
9224
|
"type": "object",
|
|
@@ -8075,7 +9275,7 @@
|
|
|
8075
9275
|
"type": "boolean"
|
|
8076
9276
|
}
|
|
8077
9277
|
},
|
|
8078
|
-
"description": "Water: without uuid it makes a body of
|
|
9278
|
+
"description": "Water: without uuid it makes a body of water — kind tank, pool, round, lake or ocean, size [w, h, d] (round: [diameter, depth, diameter]), at position (its bottom centre). With uuid it changes one (or makes an object water with a preset). preset: pool, aquarium, ocean, lake, river, lava, swamp, toxic, ice. level 0-1 (how full), color (tints the whole body, shallow to deep), look {shallowColor, deepColor, clarity, foam, …}, waves {count, amplitude, wavelength, speed, direction}, flow. Things float in it in Play. remove: true makes it a plain object again. One undo step."
|
|
8079
9279
|
},
|
|
8080
9280
|
"particles": {
|
|
8081
9281
|
"type": "object",
|
|
@@ -8119,14 +9319,14 @@
|
|
|
8119
9319
|
"type": "boolean"
|
|
8120
9320
|
}
|
|
8121
9321
|
},
|
|
8122
|
-
"description": "Particles by preset name: sparkles, fire, smoke, dust, confetti, sparks, trail, wisps, fireflies, rain, snow. Without object it places
|
|
9322
|
+
"description": "Particles by preset name: sparkles, fire, smoke, dust, confetti, sparks, trail, wisps, fireflies, rain, snow. Without object it places an invisible emitter (an empty group, nothing drawn but the particles) at position (rain and snow hang at cloud height over it); with object it attaches to that object (a torch, a campfire log). overrides tune any field (count, lifetime, speed, gravity, sizeStart, colorStart, colorEnd, opacity, …). remove: true takes them off. One undo step."
|
|
8123
9323
|
},
|
|
8124
9324
|
"sound": {
|
|
8125
9325
|
"type": "object",
|
|
8126
9326
|
"properties": {
|
|
8127
9327
|
"asset": {
|
|
8128
9328
|
"type": "string",
|
|
8129
|
-
"description": "lib:<hash>, a library hash, or https://…"
|
|
9329
|
+
"description": "lib:<hash>, a library hash, pack:<name>/<file>, or https://…"
|
|
8130
9330
|
},
|
|
8131
9331
|
"object": {
|
|
8132
9332
|
"type": "string",
|
|
@@ -8168,7 +9368,7 @@
|
|
|
8168
9368
|
"required": [
|
|
8169
9369
|
"asset"
|
|
8170
9370
|
],
|
|
8171
|
-
"description": "A sound in the world: asset = a
|
|
9371
|
+
"description": "A sound in the world: asset = a sound from assets {action: 'search'} kinds [\"sound\"] — a library hash / lib: id, or a pack sound pack:<name>/<file> (copied into the library on first use) — or an https URL of a sound file (it is checked and added to the library first). A sound you made or fetched yourself goes through assets upload (base64 bytes → a hash), so a site without CORS does not matter. Positional: heard near position (or on object), radius metres. Without on it loops all the time (a campfire crackle, a river); on: click | enter | exit | grab | hit plays it once when that happens on the object. One undo step for the file's node and its wiring."
|
|
8172
9372
|
},
|
|
8173
9373
|
"music": {
|
|
8174
9374
|
"type": "object",
|
|
@@ -8191,7 +9391,7 @@
|
|
|
8191
9391
|
"type": "boolean"
|
|
8192
9392
|
}
|
|
8193
9393
|
},
|
|
8194
|
-
"description": "The scene's background music, heard by everyone in sync: asset = a library sound
|
|
9394
|
+
"description": "The scene's background music, heard by everyone in sync: asset = a library sound (hash / lib:), a pack sound pack:<name>/<file>, an https URL, or the hash assets upload gave you for your own music (null clears it), volume 0-1, play / stop. One undo step."
|
|
8195
9395
|
}
|
|
8196
9396
|
},
|
|
8197
9397
|
"required": [
|
|
@@ -9306,7 +10506,7 @@
|
|
|
9306
10506
|
{
|
|
9307
10507
|
"name": "import_file",
|
|
9308
10508
|
"title": "Import a file",
|
|
9309
|
-
"description": "Bring a file made on your machine into the session: PNG / WebP images (≤ 16 MB, metadata stripped), JSON (≤ 2 MB)
|
|
10509
|
+
"description": "Bring a file made on your machine into the session: PNG / WebP images (≤ 16 MB, metadata stripped), JSON (≤ 2 MB), a .tpanim clip, or a font (TTF / OTF / WOFF / WOFF2 — it becomes a Library font for 3D text). The type is read from the bytes. It lands in the Explorer (folder \"Generated\" unless `folder`), shared with every peer. Pass the generator's input as `spec` and it is saved beside the file as <name>.<generator>.json (e.g. knight.png + knight.pixling.json) so it can be regenerated. An image is also placed in the scene as a card (a plane; `place: false` to skip): `filter: \"nearest\"` keeps pixel art crisp (default when a spec is given), `frame: {w, h, col, row}` shows one frame of a sprite sheet, `facing: \"camera-y\"` turns it to face each viewer. One undo step; editors and admins only. Large files: send base64 parts with `chunk: {id, index, total}` (the bridge does this for you with `path`).\nTake a screenshot after each change to check your work.",
|
|
9310
10510
|
"inputSchema": {
|
|
9311
10511
|
"type": "object",
|
|
9312
10512
|
"properties": {
|
|
@@ -9603,7 +10803,7 @@
|
|
|
9603
10803
|
{
|
|
9604
10804
|
"name": "status",
|
|
9605
10805
|
"title": "Session status",
|
|
9606
|
-
"description": "Where the agent is: connection state, whether the host has let it in, its role (viewer edits stay local), the app version, and why any tool is missing. sceneBudget says how heavy the scene is: objects, triangles (per frame drawn; the scene's own count while the view is idle, then no draw calls), draw calls, textures, lights you placed, frame time p95, tier green / amber / red on the desktop or vr profile, and over = each budget past green (build lighter, or stop adding, while it is not green).\nYou are building in the person's own open theprototype.app tab: a live, shared 3D scene. Every change shows for everyone in the session and can be undone.\nThis may be a VOICE conversation: answer in one or two short spoken sentences and say what changed in plain words (\"Added three trees by the fire\"). Never read out uuids, lists of numbers or JSON.\nIf a tool says the tab is closed or not connected, tell the person to open theprototype.app and press Connect Claude, then wait; do not retry in a loop.\nCall status first: it says whether you may edit (a viewer can only look).\nYou act as this person in their own tab: status \"you\" is them (their peer id, name and role); the other users are everyone else.",
|
|
10806
|
+
"description": "Where the agent is: connection state, whether the host has let it in, its role (viewer edits stay local), the app version, and why any tool is missing. sceneBudget says how heavy the scene is: objects, triangles (per frame drawn; the scene's own count while the view is idle, then no draw calls), draw calls, textures, lights you placed, frame time p95, tier green / amber / red on the desktop or vr profile, and over = each budget past green (build lighter, or stop adding, while it is not green). top = the objects drawing the most triangles / draw calls (lighten those first); vsync says whether frameP95 sits on the display's refresh (a steady 16.7 ms on a 60 Hz screen is the display's cap, not a slow scene) or frames miss it — a frame on the refresh never turns the tier amber or red. callsBySource splits the draw calls: objects (yours), otherInView (people, grid, sky, helpers), shadows, post (effects), otherViews (camera previews, reflections).\nYou are building in the person's own open theprototype.app tab: a live, shared 3D scene. Every change shows for everyone in the session and can be undone.\nThis may be a VOICE conversation: answer in one or two short spoken sentences and say what changed in plain words (\"Added three trees by the fire\"). Never read out uuids, lists of numbers or JSON.\nIf a tool says the tab is closed or not connected, tell the person to open theprototype.app and press Connect Claude, then wait; do not retry in a loop.\nCall status first: it says whether you may edit (a viewer can only look).\nYou act as this person in their own tab: status \"you\" is them (their peer id, name and role); the other users are everyone else.",
|
|
9607
10807
|
"inputSchema": {
|
|
9608
10808
|
"type": "object",
|
|
9609
10809
|
"properties": {}
|
|
@@ -9617,7 +10817,7 @@
|
|
|
9617
10817
|
{
|
|
9618
10818
|
"name": "screenshot",
|
|
9619
10819
|
"title": "Take a picture of the scene",
|
|
9620
|
-
"description": "See the scene: a PNG of a clean frame (no gizmos) from a temporary camera, never moving anyone's view. view: current | top | front | iso | focus (focus needs uuid or uuids); from = an angle or {yaw, pitch}; camera = a free {position, target}. 4:3 unless aspect says otherwise (current follows the person's window). Answers with the camera it used.",
|
|
10820
|
+
"description": "See the scene: a PNG of a clean frame (no gizmos, no people) from a temporary camera, never moving anyone's view. view: current | top | front | iso | focus | camera (focus needs uuid or uuids; camera looks through the scene camera uuid, its lens and framing); from = an angle or {yaw, pitch}; camera = a free {position, target}. 4:3 unless aspect says otherwise (current follows the person's window). Answers with the camera it used. postEffects: true draws the scene's post effects too; hud: true the game HUD on top; avatars: true keeps the people in (current keeps them unless false).",
|
|
9621
10821
|
"inputSchema": {
|
|
9622
10822
|
"type": "object",
|
|
9623
10823
|
"properties": {
|
|
@@ -9628,12 +10828,13 @@
|
|
|
9628
10828
|
"top",
|
|
9629
10829
|
"front",
|
|
9630
10830
|
"iso",
|
|
9631
|
-
"focus"
|
|
10831
|
+
"focus",
|
|
10832
|
+
"camera"
|
|
9632
10833
|
]
|
|
9633
10834
|
},
|
|
9634
10835
|
"uuid": {
|
|
9635
10836
|
"type": "string",
|
|
9636
|
-
"description": "object to frame"
|
|
10837
|
+
"description": "object to frame, or the camera to look through (view camera)"
|
|
9637
10838
|
},
|
|
9638
10839
|
"uuids": {
|
|
9639
10840
|
"type": "array",
|
|
@@ -9724,6 +10925,18 @@
|
|
|
9724
10925
|
"size": {
|
|
9725
10926
|
"type": "number",
|
|
9726
10927
|
"description": "longest side in pixels"
|
|
10928
|
+
},
|
|
10929
|
+
"hud": {
|
|
10930
|
+
"type": "boolean",
|
|
10931
|
+
"description": "true = draw the game HUD this screen shows on top (score, timer, menus), laid out as on screen"
|
|
10932
|
+
},
|
|
10933
|
+
"avatars": {
|
|
10934
|
+
"type": "boolean",
|
|
10935
|
+
"description": "true = keep the people (avatars, an agent's camera marker) in the frame; default leaves them out, except view current"
|
|
10936
|
+
},
|
|
10937
|
+
"postEffects": {
|
|
10938
|
+
"type": "boolean",
|
|
10939
|
+
"description": "true = draw it through the scene's post effects (bloom, vignette, colour grade …) as this screen shows them. The answer says postEffects \"applied\", or \"unavailable\" with a reason (\"quality tier\" = this device turned them off to keep its frame rate, usual on a phone — `how` says where the person raises it, or ask the person for higher quality: set_look action \"quality\" — set_quality for a local agent)"
|
|
9727
10940
|
}
|
|
9728
10941
|
}
|
|
9729
10942
|
},
|
|
@@ -9736,7 +10949,7 @@
|
|
|
9736
10949
|
{
|
|
9737
10950
|
"name": "wait_for_edit",
|
|
9738
10951
|
"title": "Wait for someone to edit",
|
|
9739
|
-
"description": "Wait until someone in the session changes the scene (or the timeout passes), so you can react to the humans.",
|
|
10952
|
+
"description": "Wait until someone in the session changes the scene or PINGS a spot (or the timeout passes), so you can react to the humans. A ping answers {changed: true, ping: {id, position, normal, on}}: build there with at: {ping: id}.",
|
|
9740
10953
|
"inputSchema": {
|
|
9741
10954
|
"type": "object",
|
|
9742
10955
|
"properties": {
|