@theprototype/agent 1.60.0 → 1.61.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 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": 69,
6
+ "hostTools": 75,
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 whose WORLD position is inside this box",
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 (front) faces this: a world point [x,y,z] or another object's uuid (+Y stays up; lights use aim)"
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 +Z front faces a person: true = the person you act for, or a peer id / name from where_are_users"
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 group"
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 (front) faces this: a world point [x,y,z] or another object's uuid (+Y stays up; lights use aim)"
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 +Z front faces a person: true = the person you act for, or a peer id / name from where_are_users"
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 clamped to 1 km, segment counts to their range"
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 that group (no position = the group's origin), so the part moves and turns with it"
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 that group (no position = the group's origin), so the part moves and turns with it"
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 [[r, g, b] 0-1, one per vertex] for a painted gradient (multiplied by the material colour). 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.",
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
- "type": "array",
1349
- "items": {
1350
- "type": "number"
1351
- },
1352
- "minItems": 3,
1353
- "maxItems": 3
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) per vertex, in the order of vertices"
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 that group (no position = the group's origin), so the part moves and turns with it"
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
- "type": "array",
1539
- "items": {
1540
- "type": "number"
1541
- },
1542
- "minItems": 3,
1543
- "maxItems": 3
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, 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. 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": {
@@ -2075,6 +2353,43 @@
2075
2353
  "openWorldHint": false
2076
2354
  }
2077
2355
  },
2356
+ {
2357
+ "name": "set_quality",
2358
+ "title": "Ask for higher quality on this device",
2359
+ "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.",
2360
+ "inputSchema": {
2361
+ "type": "object",
2362
+ "properties": {
2363
+ "level": {
2364
+ "type": "string",
2365
+ "enum": [
2366
+ "high",
2367
+ "medium",
2368
+ "auto",
2369
+ "restore"
2370
+ ]
2371
+ },
2372
+ "reason": {
2373
+ "type": "string",
2374
+ "description": "a few words for the card, e.g. \"so the portal glow shows\""
2375
+ },
2376
+ "confirmId": {
2377
+ "type": "string",
2378
+ "description": "the id a needsConfirm answer gave: repeat the call with it to get the host's answer and apply"
2379
+ },
2380
+ "wait": {
2381
+ "type": "number",
2382
+ "description": "with confirmId: seconds to wait for the answer (up to 60)"
2383
+ }
2384
+ }
2385
+ },
2386
+ "annotations": {
2387
+ "title": "Ask for higher quality on this device",
2388
+ "readOnlyHint": false,
2389
+ "destructiveHint": true,
2390
+ "openWorldHint": false
2391
+ }
2392
+ },
2078
2393
  {
2079
2394
  "name": "get_post",
2080
2395
  "title": "Read the post effects",
@@ -2624,7 +2939,7 @@
2624
2939
  {
2625
2940
  "name": "set_sky",
2626
2941
  "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.",
2942
+ "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; 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
2943
  "inputSchema": {
2629
2944
  "type": "object",
2630
2945
  "properties": {
@@ -2638,7 +2953,7 @@
2638
2953
  "object",
2639
2954
  "null"
2640
2955
  ],
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}",
2956
+ "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
2957
  "properties": {
2643
2958
  "name": {
2644
2959
  "type": "string"
@@ -3016,7 +3331,7 @@
3016
3331
  {
3017
3332
  "name": "search_assets",
3018
3333
  "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 model packs, your prefabs and Poly Haven. Each result has an id, name, kind, source, licence, size when known, and how to use it. Read-only.",
3334
+ "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
3335
  "inputSchema": {
3021
3336
  "type": "object",
3022
3337
  "properties": {
@@ -3179,7 +3494,7 @@
3179
3494
  {
3180
3495
  "name": "create_particles",
3181
3496
  "title": "Add particles",
3182
- "description": "Particles by preset name: sparkles, fire, smoke, dust, confetti, sparks, trail, wisps, fireflies, rain, snow. Without object it places a small emitter 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.",
3497
+ "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
3498
  "inputSchema": {
3184
3499
  "type": "object",
3185
3500
  "properties": {
@@ -3233,7 +3548,7 @@
3233
3548
  {
3234
3549
  "name": "scatter",
3235
3550
  "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.",
3551
+ "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
3552
  "inputSchema": {
3238
3553
  "type": "object",
3239
3554
  "properties": {
@@ -3272,25 +3587,65 @@
3272
3587
  },
3273
3588
  "rules": {
3274
3589
  "type": "object",
3275
- "description": "{slope: [0, 25] degrees from flat, height: [min, max] metres, layer: {i: paint layer 0-3, min: 0-1}}"
3590
+ "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
3591
  },
3277
3592
  "seed": {
3278
- "type": "integer"
3279
- },
3280
- "tint": {
3281
- "type": "number",
3282
- "description": "0-1 colour variation"
3283
- },
3284
- "sink": {
3285
- "type": "number",
3286
- "description": "metres pushed into the ground"
3593
+ "type": "integer",
3594
+ "description": "the same seed puts them in the same spots; another seed, another layout"
3287
3595
  },
3288
- "collider": {
3596
+ "source": {
3289
3597
  "type": "string",
3290
- "enum": [
3291
- "none",
3292
- "box",
3293
- "sphere",
3598
+ "description": "the uuid of an object in the scene: scatter real copies of it (max 200) instead of asset"
3599
+ },
3600
+ "avoid": {
3601
+ "type": "array",
3602
+ "maxItems": 16,
3603
+ "items": {
3604
+ "anyOf": [
3605
+ {
3606
+ "type": "string"
3607
+ },
3608
+ {
3609
+ "type": "object",
3610
+ "properties": {
3611
+ "uuid": {
3612
+ "type": "string"
3613
+ },
3614
+ "position": {
3615
+ "type": "array",
3616
+ "items": {
3617
+ "type": "number"
3618
+ },
3619
+ "minItems": 3,
3620
+ "maxItems": 3
3621
+ },
3622
+ "radius": {
3623
+ "type": "number"
3624
+ }
3625
+ }
3626
+ }
3627
+ ]
3628
+ },
3629
+ "description": "places to keep clear: an object uuid (its footprint), {uuid, radius} or {position, radius} (a circle, metres)"
3630
+ },
3631
+ "id": {
3632
+ "type": "string",
3633
+ "description": "a name for the set (default from the first asset); remove takes it"
3634
+ },
3635
+ "tint": {
3636
+ "type": "number",
3637
+ "description": "0-1 colour variation"
3638
+ },
3639
+ "sink": {
3640
+ "type": "number",
3641
+ "description": "metres pushed into the ground"
3642
+ },
3643
+ "collider": {
3644
+ "type": "string",
3645
+ "enum": [
3646
+ "none",
3647
+ "box",
3648
+ "sphere",
3294
3649
  "hull"
3295
3650
  ],
3296
3651
  "description": "physics for the instances (default none)"
@@ -3314,7 +3669,7 @@
3314
3669
  {
3315
3670
  "name": "terrain",
3316
3671
  "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.",
3672
+ "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
3673
  "inputSchema": {
3319
3674
  "type": "object",
3320
3675
  "properties": {
@@ -3340,7 +3695,21 @@
3340
3695
  "height": {
3341
3696
  "type": "number",
3342
3697
  "minimum": 0,
3343
- "maximum": 40
3698
+ "maximum": 100,
3699
+ "description": "the highest peak, metres"
3700
+ },
3701
+ "amplitude": {
3702
+ "type": "number",
3703
+ "minimum": 0,
3704
+ "maximum": 40,
3705
+ "description": "the raw noise scale (height sets it for you)"
3706
+ },
3707
+ "paintBy": {
3708
+ "type": "string",
3709
+ "enum": [
3710
+ "height"
3711
+ ],
3712
+ "description": "paint the layers by height: layer 0 low, the last layer on the peaks"
3344
3713
  },
3345
3714
  "detail": {
3346
3715
  "type": "number"
@@ -3411,7 +3780,7 @@
3411
3780
  {
3412
3781
  "name": "water",
3413
3782
  "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.",
3783
+ "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
3784
  "inputSchema": {
3416
3785
  "type": "object",
3417
3786
  "properties": {
@@ -3478,13 +3847,13 @@
3478
3847
  {
3479
3848
  "name": "place_sound",
3480
3849
  "title": "Place a sound",
3481
- "description": "A sound in the world: asset = a library sound (search_assets kinds [\"sound\"]) or an https URL of a sound file (it is checked and added to the library first). 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.",
3850
+ "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
3851
  "inputSchema": {
3483
3852
  "type": "object",
3484
3853
  "properties": {
3485
3854
  "asset": {
3486
3855
  "type": "string",
3487
- "description": "lib:<hash>, a library hash, or https://…"
3856
+ "description": "lib:<hash>, a library hash, pack:<name>/<file>, or https://…"
3488
3857
  },
3489
3858
  "object": {
3490
3859
  "type": "string",
@@ -3537,7 +3906,7 @@
3537
3906
  {
3538
3907
  "name": "set_music",
3539
3908
  "title": "Set the background music",
3540
- "description": "The scene's background music, heard by everyone in sync: asset = a library sound or an https URL (null clears it), volume 0-1, play / stop. One undo step.\nTake a screenshot after each change to check your work.",
3909
+ "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
3910
  "inputSchema": {
3542
3911
  "type": "object",
3543
3912
  "properties": {
@@ -4484,7 +4853,7 @@
4484
4853
  {
4485
4854
  "name": "import_file",
4486
4855
  "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) or a .tpanim clip. 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.",
4856
+ "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
4857
  "inputSchema": {
4489
4858
  "type": "object",
4490
4859
  "properties": {
@@ -4617,6 +4986,141 @@
4617
4986
  "openWorldHint": false
4618
4987
  }
4619
4988
  },
4989
+ {
4990
+ "name": "upload_asset",
4991
+ "title": "Upload a sound or an HDR sky",
4992
+ "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.",
4993
+ "inputSchema": {
4994
+ "type": "object",
4995
+ "properties": {
4996
+ "data": {
4997
+ "type": "string",
4998
+ "description": "the file as base64 (or this chunk's part of it)"
4999
+ },
5000
+ "chunk": {
5001
+ "type": "object",
5002
+ "description": "{id, index (from 0), total}: one part of a big file; it lands when the last part arrives",
5003
+ "properties": {
5004
+ "id": {
5005
+ "type": "string"
5006
+ },
5007
+ "index": {
5008
+ "type": "integer"
5009
+ },
5010
+ "total": {
5011
+ "type": "integer"
5012
+ }
5013
+ }
5014
+ },
5015
+ "name": {
5016
+ "type": "string",
5017
+ "description": "a name for the library (the extension comes from the bytes)"
5018
+ },
5019
+ "folder": {
5020
+ "type": "string",
5021
+ "description": "Explorer folder (default \"Sounds\" or \"Skies\")"
5022
+ }
5023
+ },
5024
+ "required": [
5025
+ "data"
5026
+ ]
5027
+ },
5028
+ "annotations": {
5029
+ "title": "Upload a sound or an HDR sky",
5030
+ "readOnlyHint": false,
5031
+ "destructiveHint": false,
5032
+ "openWorldHint": false
5033
+ }
5034
+ },
5035
+ {
5036
+ "name": "import_shape",
5037
+ "title": "Import a model file (glTF / GLB / OBJ)",
5038
+ "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.",
5039
+ "inputSchema": {
5040
+ "type": "object",
5041
+ "properties": {
5042
+ "data": {
5043
+ "type": "string",
5044
+ "description": "the file as base64 (or this chunk's part of it)"
5045
+ },
5046
+ "chunk": {
5047
+ "type": "object",
5048
+ "description": "{id, index (from 0), total}: one part of a big file; the model is placed when the last part lands",
5049
+ "properties": {
5050
+ "id": {
5051
+ "type": "string"
5052
+ },
5053
+ "index": {
5054
+ "type": "integer"
5055
+ },
5056
+ "total": {
5057
+ "type": "integer"
5058
+ }
5059
+ }
5060
+ },
5061
+ "url": {
5062
+ "type": "string",
5063
+ "description": "an https address of a .glb / .gltf / .obj (the server must allow cross-origin reads)"
5064
+ },
5065
+ "name": {
5066
+ "type": "string"
5067
+ },
5068
+ "position": {
5069
+ "type": "array",
5070
+ "items": {
5071
+ "type": "number"
5072
+ },
5073
+ "minItems": 3,
5074
+ "maxItems": 3
5075
+ },
5076
+ "rotation": {
5077
+ "type": "array",
5078
+ "items": {
5079
+ "type": "number"
5080
+ },
5081
+ "minItems": 3,
5082
+ "maxItems": 3,
5083
+ "description": "radians, XYZ"
5084
+ },
5085
+ "scale": {
5086
+ "type": "array",
5087
+ "items": {
5088
+ "type": "number"
5089
+ },
5090
+ "minItems": 3,
5091
+ "maxItems": 3
5092
+ },
5093
+ "parentUuid": {
5094
+ "type": "string",
5095
+ "description": "a group (or any object) to put it in"
5096
+ },
5097
+ "folder": {
5098
+ "type": "string",
5099
+ "description": "Explorer folder (default \"Imported models\")"
5100
+ },
5101
+ "castShadow": {
5102
+ "type": "boolean"
5103
+ },
5104
+ "receiveShadow": {
5105
+ "type": "boolean"
5106
+ },
5107
+ "source": {
5108
+ "type": "string",
5109
+ "description": "where it came from (kept with the model)"
5110
+ },
5111
+ "licence": {
5112
+ "type": "string",
5113
+ "description": "its licence, e.g. CC0"
5114
+ }
5115
+ }
5116
+ },
5117
+ "annotations": {
5118
+ "title": "Import a model file (glTF / GLB / OBJ)",
5119
+ "readOnlyHint": false,
5120
+ "destructiveHint": false,
5121
+ "openWorldHint": true
5122
+ }
5123
+ },
4620
5124
  {
4621
5125
  "name": "install_modules",
4622
5126
  "title": "Install modules",
@@ -4781,7 +5285,7 @@
4781
5285
  {
4782
5286
  "name": "status",
4783
5287
  "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.",
5288
+ "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
5289
  "inputSchema": {
4786
5290
  "type": "object",
4787
5291
  "properties": {}
@@ -4795,7 +5299,7 @@
4795
5299
  {
4796
5300
  "name": "screenshot",
4797
5301
  "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.",
5302
+ "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
5303
  "inputSchema": {
4800
5304
  "type": "object",
4801
5305
  "properties": {
@@ -4806,12 +5310,13 @@
4806
5310
  "top",
4807
5311
  "front",
4808
5312
  "iso",
4809
- "focus"
5313
+ "focus",
5314
+ "camera"
4810
5315
  ]
4811
5316
  },
4812
5317
  "uuid": {
4813
5318
  "type": "string",
4814
- "description": "object to frame"
5319
+ "description": "object to frame, or the camera to look through (view camera)"
4815
5320
  },
4816
5321
  "uuids": {
4817
5322
  "type": "array",
@@ -4902,6 +5407,18 @@
4902
5407
  "size": {
4903
5408
  "type": "number",
4904
5409
  "description": "longest side in pixels"
5410
+ },
5411
+ "hud": {
5412
+ "type": "boolean",
5413
+ "description": "true = draw the game HUD this screen shows on top (score, timer, menus), laid out as on screen"
5414
+ },
5415
+ "avatars": {
5416
+ "type": "boolean",
5417
+ "description": "true = keep the people (avatars, an agent's camera marker) in the frame; default leaves them out, except view current"
5418
+ },
5419
+ "postEffects": {
5420
+ "type": "boolean",
5421
+ "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
5422
  }
4906
5423
  }
4907
5424
  },
@@ -4914,7 +5431,7 @@
4914
5431
  {
4915
5432
  "name": "wait_for_edit",
4916
5433
  "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.",
5434
+ "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
5435
  "inputSchema": {
4919
5436
  "type": "object",
4920
5437
  "properties": {
@@ -4981,12 +5498,15 @@
4981
5498
  "tube": "create_tube",
4982
5499
  "extrude": "extrude_shape",
4983
5500
  "mesh": "create_mesh",
5501
+ "text": "create_text",
5502
+ "import": "import_shape",
4984
5503
  "shapes": "create_shapes"
4985
5504
  },
4986
5505
  "edit_shape": {
4987
5506
  "params": "set_geometry",
4988
5507
  "mesh": "edit_mesh",
4989
5508
  "update": "update_mesh",
5509
+ "duplicate": "duplicate",
4990
5510
  "pivot": "set_pivot",
4991
5511
  "pivot_group": "create_pivot"
4992
5512
  },
@@ -5005,7 +5525,8 @@
5005
5525
  "uv": "set_uv",
5006
5526
  "sky": "set_sky",
5007
5527
  "light": "set_light",
5008
- "environment": "get_environment"
5528
+ "environment": "get_environment",
5529
+ "quality": "set_quality"
5009
5530
  },
5010
5531
  "run": {
5011
5532
  "inspect": "inspect_runtime",
@@ -5016,7 +5537,9 @@
5016
5537
  "search": "search_assets",
5017
5538
  "place": "place_asset",
5018
5539
  "prefab": "prefab",
5019
- "image": "add_image"
5540
+ "image": "add_image",
5541
+ "upload": "upload_asset",
5542
+ "fonts": "list_fonts"
5020
5543
  },
5021
5544
  "effects": {
5022
5545
  "terrain": "terrain",
@@ -5067,7 +5590,7 @@
5067
5590
  },
5068
5591
  "near": {
5069
5592
  "type": "object",
5070
- "description": "optional: only objects within radius of a WORLD position",
5593
+ "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
5594
  "properties": {
5072
5595
  "position": {
5073
5596
  "type": "array",
@@ -5078,6 +5601,14 @@
5078
5601
  },
5079
5602
  "radius": {
5080
5603
  "type": "number"
5604
+ },
5605
+ "by": {
5606
+ "type": "string",
5607
+ "enum": [
5608
+ "origin",
5609
+ "touches",
5610
+ "inside"
5611
+ ]
5081
5612
  }
5082
5613
  },
5083
5614
  "required": [
@@ -5087,7 +5618,7 @@
5087
5618
  },
5088
5619
  "bounds": {
5089
5620
  "type": "object",
5090
- "description": "optional: only objects whose WORLD position is inside this box",
5621
+ "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
5622
  "properties": {
5092
5623
  "min": {
5093
5624
  "type": "array",
@@ -5102,6 +5633,14 @@
5102
5633
  "type": "number"
5103
5634
  },
5104
5635
  "description": "[x, y, z]"
5636
+ },
5637
+ "by": {
5638
+ "type": "string",
5639
+ "enum": [
5640
+ "origin",
5641
+ "touches",
5642
+ "inside"
5643
+ ]
5105
5644
  }
5106
5645
  },
5107
5646
  "required": [
@@ -5217,7 +5756,7 @@
5217
5756
  "items": {
5218
5757
  "type": "number"
5219
5758
  },
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."
5759
+ "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
5760
  },
5222
5761
  "name": {
5223
5762
  "type": "string"
@@ -5304,7 +5843,7 @@
5304
5843
  "description": "meshes and models: shadows fall on it (on by default)"
5305
5844
  },
5306
5845
  "lookAt": {
5307
- "description": "turn it so its local +Z (front) faces this: a world point [x,y,z] or another object's uuid (+Y stays up; lights use aim)"
5846
+ "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
5847
  },
5309
5848
  "at": {
5310
5849
  "type": "object",
@@ -5342,11 +5881,23 @@
5342
5881
  "description": "stand it on whatever is straight under it (terrain, floor, table; at most 2 m above its base), else the ground"
5343
5882
  },
5344
5883
  "face_user": {
5345
- "description": "turn it (yaw only) so its +Z front faces a person: true = the person you act for, or a peer id / name from where_are_users"
5884
+ "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"
5885
+ },
5886
+ "front": {
5887
+ "type": "string",
5888
+ "enum": [
5889
+ "+z",
5890
+ "-z",
5891
+ "+x",
5892
+ "-x",
5893
+ "+y",
5894
+ "-y"
5895
+ ],
5896
+ "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
5897
  },
5347
5898
  "parentUuid": {
5348
5899
  "type": "string",
5349
- "description": "uuid of an existing group to nest under — position/rotation/scale are then LOCAL to that group"
5900
+ "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
5901
  },
5351
5902
  "physics": {
5352
5903
  "type": "string",
@@ -5489,7 +6040,7 @@
5489
6040
  "description": "meshes and models: shadows fall on it (on by default)"
5490
6041
  },
5491
6042
  "lookAt": {
5492
- "description": "turn it so its local +Z (front) faces this: a world point [x,y,z] or another object's uuid (+Y stays up; lights use aim)"
6043
+ "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
6044
  },
5494
6045
  "at": {
5495
6046
  "type": "object",
@@ -5527,14 +6078,26 @@
5527
6078
  "description": "stand it on whatever is straight under it (terrain, floor, table; at most 2 m above its base), else the ground"
5528
6079
  },
5529
6080
  "face_user": {
5530
- "description": "turn it (yaw only) so its +Z front faces a person: true = the person you act for, or a peer id / name from where_are_users"
6081
+ "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"
6082
+ },
6083
+ "front": {
6084
+ "type": "string",
6085
+ "enum": [
6086
+ "+z",
6087
+ "-z",
6088
+ "+x",
6089
+ "-x",
6090
+ "+y",
6091
+ "-y"
6092
+ ],
6093
+ "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
6094
  },
5532
6095
  "visible": {
5533
6096
  "type": "boolean"
5534
6097
  },
5535
6098
  "parentUuid": {
5536
6099
  "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"
6100
+ "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
6101
  }
5539
6102
  },
5540
6103
  "required": [
@@ -5726,7 +6289,7 @@
5726
6289
  {
5727
6290
  "name": "create_shape",
5728
6291
  "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), or a mesh from your own vertices (anything else).\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.",
6292
+ "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
6293
  "inputSchema": {
5731
6294
  "type": "object",
5732
6295
  "properties": {
@@ -5736,7 +6299,9 @@
5736
6299
  "lathe",
5737
6300
  "tube",
5738
6301
  "extrude",
5739
- "mesh"
6302
+ "mesh",
6303
+ "text",
6304
+ "import"
5740
6305
  ],
5741
6306
  "description": "What to do. Put its fields in the object named after the action."
5742
6307
  },
@@ -5803,7 +6368,7 @@
5803
6368
  },
5804
6369
  "parentUuid": {
5805
6370
  "type": "string",
5806
- "description": "uuid of a group to nest under — position / rotation / scale AND the shape's own points are then LOCAL to that group (no position = the group's origin), so the part moves and turns with it"
6371
+ "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
6372
  },
5808
6373
  "physics": {
5809
6374
  "type": "string",
@@ -5989,7 +6554,7 @@
5989
6554
  },
5990
6555
  "parentUuid": {
5991
6556
  "type": "string",
5992
- "description": "uuid of a group to nest under — position / rotation / scale AND the shape's own points are then LOCAL to that group (no position = the group's origin), so the part moves and turns with it"
6557
+ "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
6558
  },
5994
6559
  "physics": {
5995
6560
  "type": "string",
@@ -6059,15 +6624,31 @@
6059
6624
  "colors": {
6060
6625
  "type": "array",
6061
6626
  "items": {
6062
- "type": "array",
6063
- "items": {
6064
- "type": "number"
6065
- },
6066
- "minItems": 3,
6067
- "maxItems": 3
6627
+ "anyOf": [
6628
+ {
6629
+ "type": "array",
6630
+ "items": {
6631
+ "type": "number"
6632
+ },
6633
+ "minItems": 3,
6634
+ "maxItems": 3
6635
+ },
6636
+ {
6637
+ "type": "string",
6638
+ "description": "#rrggbb"
6639
+ }
6640
+ ]
6068
6641
  },
6069
6642
  "maxItems": 20000,
6070
- "description": "one [r, g, b] (0-1) per vertex, in the order of vertices"
6643
+ "description": "one colour per vertex, in the order of vertices: [r, g, b] (0-1, sRGB unless colorSpace is \"linear\") or \"#rrggbb\""
6644
+ },
6645
+ "colorSpace": {
6646
+ "type": "string",
6647
+ "enum": [
6648
+ "srgb",
6649
+ "linear"
6650
+ ],
6651
+ "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
6652
  },
6072
6653
  "materials": {
6073
6654
  "type": "array",
@@ -6111,20 +6692,231 @@
6111
6692
  }
6112
6693
  }
6113
6694
  },
6114
- "faceMaterials": {
6695
+ "faceMaterials": {
6696
+ "type": "array",
6697
+ "items": {
6698
+ "type": "integer",
6699
+ "minimum": 0
6700
+ },
6701
+ "maxItems": 20000,
6702
+ "description": "the materials slot of each face (0 = the first), one per face"
6703
+ },
6704
+ "subdivide": {
6705
+ "type": "integer",
6706
+ "minimum": 0,
6707
+ "maximum": 2,
6708
+ "description": "smooth the mesh 1 or 2 levels (Catmull-Clark); smooth shading follows unless smooth: false"
6709
+ },
6710
+ "name": {
6711
+ "type": "string"
6712
+ },
6713
+ "position": {
6714
+ "type": "array",
6715
+ "items": {
6716
+ "type": "number"
6717
+ },
6718
+ "minItems": 3,
6719
+ "maxItems": 3
6720
+ },
6721
+ "rotation": {
6722
+ "type": "array",
6723
+ "items": {
6724
+ "type": "number"
6725
+ },
6726
+ "minItems": 3,
6727
+ "maxItems": 3,
6728
+ "description": "Euler radians"
6729
+ },
6730
+ "scale": {
6731
+ "type": "array",
6732
+ "items": {
6733
+ "type": "number"
6734
+ },
6735
+ "minItems": 3,
6736
+ "maxItems": 3
6737
+ },
6738
+ "color": {
6739
+ "type": "string",
6740
+ "description": "hex #rrggbb"
6741
+ },
6742
+ "parentUuid": {
6743
+ "type": "string",
6744
+ "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"
6745
+ },
6746
+ "physics": {
6747
+ "type": "string",
6748
+ "enum": [
6749
+ "static",
6750
+ "dynamic"
6751
+ ],
6752
+ "description": "default static"
6753
+ },
6754
+ "castShadow": {
6755
+ "type": "boolean",
6756
+ "description": "cast a shadow (on by default)"
6757
+ },
6758
+ "receiveShadow": {
6759
+ "type": "boolean",
6760
+ "description": "shadows fall on it (on by default)"
6761
+ }
6762
+ },
6763
+ "required": [
6764
+ "vertices",
6765
+ "faces"
6766
+ ],
6767
+ "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."
6768
+ },
6769
+ "text": {
6770
+ "type": "object",
6771
+ "properties": {
6772
+ "text": {
6773
+ "type": "string",
6774
+ "description": "the words; \\n breaks a line"
6775
+ },
6776
+ "font": {
6777
+ "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"
6778
+ },
6779
+ "size": {
6780
+ "type": "number",
6781
+ "description": "letter height (the em) in metres, default 0.4"
6782
+ },
6783
+ "solid": {
6784
+ "type": "boolean",
6785
+ "description": "true = solid 3D letters (extruded); false = flat. depth or bevel imply solid"
6786
+ },
6787
+ "depth": {
6788
+ "type": "number",
6789
+ "description": "solid: thickness in metres (default 0.1)"
6790
+ },
6791
+ "bevel": {
6792
+ "description": "solid: bevel width in metres, false for none, or {size, thickness, segments}"
6793
+ },
6794
+ "align": {
6795
+ "type": "string",
6796
+ "enum": [
6797
+ "left",
6798
+ "center",
6799
+ "right",
6800
+ "justify"
6801
+ ]
6802
+ },
6803
+ "maxWidth": {
6804
+ "type": "number",
6805
+ "description": "wrap lines at this width in metres; 0 = no wrapping"
6806
+ },
6807
+ "anchor": {
6808
+ "type": "string",
6809
+ "enum": [
6810
+ "top-left",
6811
+ "top-center",
6812
+ "top-right",
6813
+ "middle-left",
6814
+ "middle-center",
6815
+ "middle-right",
6816
+ "bottom-left",
6817
+ "bottom-center",
6818
+ "bottom-right"
6819
+ ],
6820
+ "description": "where the block sits around its position (default middle-center)"
6821
+ },
6822
+ "lineHeight": {
6823
+ "type": "number",
6824
+ "description": "in ems, default 1.2"
6825
+ },
6826
+ "letterSpacing": {
6827
+ "type": "number",
6828
+ "description": "extra space between letters, in ems"
6829
+ },
6830
+ "bold": {
6831
+ "type": "boolean",
6832
+ "description": "flat Noto Sans and Google fonts"
6833
+ },
6834
+ "italic": {
6835
+ "type": "boolean"
6836
+ },
6837
+ "color": {
6838
+ "type": "string",
6839
+ "description": "hex #rrggbb (the face colour of solid text)"
6840
+ },
6841
+ "sideColor": {
6842
+ "type": "string",
6843
+ "description": "solid: hex colour of the sides (default a shade of color)"
6844
+ },
6845
+ "emissive": {
6846
+ "type": "number",
6847
+ "description": "solid: glow 0..4"
6848
+ },
6849
+ "metalness": {
6850
+ "type": "number"
6851
+ },
6852
+ "roughness": {
6853
+ "type": "number"
6854
+ },
6855
+ "quality": {
6856
+ "type": "string",
6857
+ "enum": [
6858
+ "low",
6859
+ "medium",
6860
+ "high"
6861
+ ],
6862
+ "description": "solid: curve smoothness (triangles)"
6863
+ },
6864
+ "outline": {
6865
+ "type": "number",
6866
+ "description": "flat: outline width in ems (0..0.3)"
6867
+ },
6868
+ "name": {
6869
+ "type": "string"
6870
+ },
6871
+ "position": {
6115
6872
  "type": "array",
6116
6873
  "items": {
6117
- "type": "integer",
6118
- "minimum": 0
6874
+ "type": "number"
6119
6875
  },
6120
- "maxItems": 20000,
6121
- "description": "the materials slot of each face (0 = the first), one per face"
6876
+ "minItems": 3,
6877
+ "maxItems": 3,
6878
+ "description": "world point, metres (default: in front of the camera)"
6122
6879
  },
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"
6880
+ "rotation": {
6881
+ "type": "array",
6882
+ "items": {
6883
+ "type": "number"
6884
+ },
6885
+ "minItems": 3,
6886
+ "maxItems": 3,
6887
+ "description": "Euler radians"
6888
+ }
6889
+ },
6890
+ "required": [
6891
+ "text"
6892
+ ],
6893
+ "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."
6894
+ },
6895
+ "import": {
6896
+ "type": "object",
6897
+ "properties": {
6898
+ "data": {
6899
+ "type": "string",
6900
+ "description": "the file as base64 (or this chunk's part of it)"
6901
+ },
6902
+ "chunk": {
6903
+ "type": "object",
6904
+ "description": "{id, index (from 0), total}: one part of a big file; the model is placed when the last part lands",
6905
+ "properties": {
6906
+ "id": {
6907
+ "type": "string"
6908
+ },
6909
+ "index": {
6910
+ "type": "integer"
6911
+ },
6912
+ "total": {
6913
+ "type": "integer"
6914
+ }
6915
+ }
6916
+ },
6917
+ "url": {
6918
+ "type": "string",
6919
+ "description": "an https address of a .glb / .gltf / .obj (the server must allow cross-origin reads)"
6128
6920
  },
6129
6921
  "name": {
6130
6922
  "type": "string"
@@ -6144,7 +6936,7 @@
6144
6936
  },
6145
6937
  "minItems": 3,
6146
6938
  "maxItems": 3,
6147
- "description": "Euler radians"
6939
+ "description": "radians, XYZ"
6148
6940
  },
6149
6941
  "scale": {
6150
6942
  "type": "array",
@@ -6154,36 +6946,30 @@
6154
6946
  "minItems": 3,
6155
6947
  "maxItems": 3
6156
6948
  },
6157
- "color": {
6158
- "type": "string",
6159
- "description": "hex #rrggbb"
6160
- },
6161
6949
  "parentUuid": {
6162
6950
  "type": "string",
6163
- "description": "uuid of a group to nest under — position / rotation / scale AND the shape's own points are then LOCAL to that group (no position = the group's origin), so the part moves and turns with it"
6951
+ "description": "a group (or any object) to put it in"
6164
6952
  },
6165
- "physics": {
6953
+ "folder": {
6166
6954
  "type": "string",
6167
- "enum": [
6168
- "static",
6169
- "dynamic"
6170
- ],
6171
- "description": "default static"
6955
+ "description": "Explorer folder (default \"Imported models\")"
6172
6956
  },
6173
6957
  "castShadow": {
6174
- "type": "boolean",
6175
- "description": "cast a shadow (on by default)"
6958
+ "type": "boolean"
6176
6959
  },
6177
6960
  "receiveShadow": {
6178
- "type": "boolean",
6179
- "description": "shadows fall on it (on by default)"
6961
+ "type": "boolean"
6962
+ },
6963
+ "source": {
6964
+ "type": "string",
6965
+ "description": "where it came from (kept with the model)"
6966
+ },
6967
+ "licence": {
6968
+ "type": "string",
6969
+ "description": "its licence, e.g. CC0"
6180
6970
  }
6181
6971
  },
6182
- "required": [
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."
6972
+ "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
6973
  },
6188
6974
  "shapes": {
6189
6975
  "type": "array",
@@ -6230,13 +7016,13 @@
6230
7016
  "title": "Make a shape",
6231
7017
  "readOnlyHint": false,
6232
7018
  "destructiveHint": true,
6233
- "openWorldHint": false
7019
+ "openWorldHint": true
6234
7020
  }
6235
7021
  },
6236
7022
  {
6237
7023
  "name": "edit_shape",
6238
7024
  "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.",
7025
+ "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
7026
  "inputSchema": {
6241
7027
  "type": "object",
6242
7028
  "properties": {
@@ -6246,6 +7032,7 @@
6246
7032
  "params",
6247
7033
  "mesh",
6248
7034
  "update",
7035
+ "duplicate",
6249
7036
  "pivot",
6250
7037
  "pivot_group"
6251
7038
  ],
@@ -6292,7 +7079,7 @@
6292
7079
  },
6293
7080
  "params": {
6294
7081
  "type": "object",
6295
- "description": "param name → value; sizes clamped to 1 km, segment counts to their range"
7082
+ "description": "param name → value; sizes from 0.001 m to 1 km (the same for every primitive), segment counts to their range"
6296
7083
  },
6297
7084
  "path": {
6298
7085
  "type": "array",
@@ -6339,7 +7126,7 @@
6339
7126
  "required": [
6340
7127
  "updates"
6341
7128
  ],
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."
7129
+ "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
7130
  },
6344
7131
  "mesh": {
6345
7132
  "type": "object",
@@ -6574,14 +7361,31 @@
6574
7361
  "colors": {
6575
7362
  "type": "array",
6576
7363
  "items": {
6577
- "type": "array",
6578
- "items": {
6579
- "type": "number"
6580
- },
6581
- "minItems": 3,
6582
- "maxItems": 3
7364
+ "anyOf": [
7365
+ {
7366
+ "type": "array",
7367
+ "items": {
7368
+ "type": "number"
7369
+ },
7370
+ "minItems": 3,
7371
+ "maxItems": 3
7372
+ },
7373
+ {
7374
+ "type": "string",
7375
+ "description": "#rrggbb"
7376
+ }
7377
+ ]
6583
7378
  },
6584
- "maxItems": 20000
7379
+ "maxItems": 20000,
7380
+ "description": "as create_mesh: [r, g, b] (sRGB unless colorSpace is \"linear\") or \"#rrggbb\" per vertex"
7381
+ },
7382
+ "colorSpace": {
7383
+ "type": "string",
7384
+ "enum": [
7385
+ "srgb",
7386
+ "linear"
7387
+ ],
7388
+ "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
7389
  },
6586
7390
  "faceMaterials": {
6587
7391
  "type": "array",
@@ -6606,6 +7410,51 @@
6606
7410
  ],
6607
7411
  "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
7412
  },
7413
+ "duplicate": {
7414
+ "type": "object",
7415
+ "properties": {
7416
+ "uuid": {
7417
+ "type": "string",
7418
+ "description": "the object to copy"
7419
+ },
7420
+ "count": {
7421
+ "type": "integer",
7422
+ "minimum": 1,
7423
+ "maximum": 50,
7424
+ "description": "copies (default 1)"
7425
+ },
7426
+ "offset": {
7427
+ "type": "array",
7428
+ "items": {
7429
+ "type": "number"
7430
+ },
7431
+ "minItems": 3,
7432
+ "maxItems": 3,
7433
+ "description": "[x, y, z] metres between copies in the parent's space; with mirror it moves the mirror image (default [0, 0, 0])"
7434
+ },
7435
+ "mirror": {
7436
+ "type": "string",
7437
+ "enum": [
7438
+ "x",
7439
+ "y",
7440
+ "z"
7441
+ ],
7442
+ "description": "the axis the mirror flips: x makes a left part the right one"
7443
+ },
7444
+ "parentUuid": {
7445
+ "type": "string",
7446
+ "description": "a group (or any object) to put the copies in"
7447
+ },
7448
+ "name": {
7449
+ "type": "string",
7450
+ "description": "the copies' name (numbered when several)"
7451
+ }
7452
+ },
7453
+ "required": [
7454
+ "uuid"
7455
+ ],
7456
+ "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>."
7457
+ },
6609
7458
  "pivot": {
6610
7459
  "type": "object",
6611
7460
  "properties": {
@@ -6707,7 +7556,7 @@
6707
7556
  {
6708
7557
  "name": "set_look",
6709
7558
  "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.",
7559
+ "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
7560
  "inputSchema": {
6712
7561
  "type": "object",
6713
7562
  "properties": {
@@ -6728,7 +7577,8 @@
6728
7577
  "uv",
6729
7578
  "sky",
6730
7579
  "light",
6731
- "environment"
7580
+ "environment",
7581
+ "quality"
6732
7582
  ],
6733
7583
  "description": "What to do. Put its fields in the object named after the action."
6734
7584
  },
@@ -7036,7 +7886,7 @@
7036
7886
  ]
7037
7887
  }
7038
7888
  },
7039
- "description": "The shader node catalog: each type with what it does, its params (which become uniforms), inputs and outputs."
7889
+ "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
7890
  },
7041
7891
  "post": {
7042
7892
  "type": "object",
@@ -7098,7 +7948,7 @@
7098
7948
  "description": "with confirmId: seconds to wait for the answer (up to 60)"
7099
7949
  }
7100
7950
  },
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."
7951
+ "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. 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
7952
  },
7103
7953
  "get_post": {
7104
7954
  "type": "object",
@@ -7241,7 +8091,7 @@
7241
8091
  "object",
7242
8092
  "null"
7243
8093
  ],
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}",
8094
+ "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
8095
  "properties": {
7246
8096
  "name": {
7247
8097
  "type": "string"
@@ -7339,7 +8189,7 @@
7339
8189
  "description": "with confirmId: seconds to wait for the answer (up to 60)"
7340
8190
  }
7341
8191
  },
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."
8192
+ "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; 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
8193
  },
7344
8194
  "light": {
7345
8195
  "type": "object",
@@ -7475,6 +8325,33 @@
7475
8325
  }
7476
8326
  },
7477
8327
  "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."
8328
+ },
8329
+ "quality": {
8330
+ "type": "object",
8331
+ "properties": {
8332
+ "level": {
8333
+ "type": "string",
8334
+ "enum": [
8335
+ "high",
8336
+ "medium",
8337
+ "auto",
8338
+ "restore"
8339
+ ]
8340
+ },
8341
+ "reason": {
8342
+ "type": "string",
8343
+ "description": "a few words for the card, e.g. \"so the portal glow shows\""
8344
+ },
8345
+ "confirmId": {
8346
+ "type": "string",
8347
+ "description": "the id a needsConfirm answer gave: repeat the call with it to get the host's answer and apply"
8348
+ },
8349
+ "wait": {
8350
+ "type": "number",
8351
+ "description": "with confirmId: seconds to wait for the answer (up to 60)"
8352
+ }
8353
+ },
8354
+ "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?\""
7478
8355
  }
7479
8356
  },
7480
8357
  "required": [
@@ -7570,7 +8447,7 @@
7570
8447
  {
7571
8448
  "name": "assets",
7572
8449
  "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.",
8450
+ "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
8451
  "inputSchema": {
7575
8452
  "type": "object",
7576
8453
  "properties": {
@@ -7580,7 +8457,9 @@
7580
8457
  "search",
7581
8458
  "place",
7582
8459
  "prefab",
7583
- "image"
8460
+ "image",
8461
+ "upload",
8462
+ "fonts"
7584
8463
  ],
7585
8464
  "description": "What to do. Put its fields in the object named after the action."
7586
8465
  },
@@ -7626,7 +8505,7 @@
7626
8505
  "description": "default 12"
7627
8506
  }
7628
8507
  },
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 model packs, your prefabs and Poly Haven. Each result has an id, name, kind, source, licence, size when known, and how to use it. Read-only."
8508
+ "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
8509
  },
7631
8510
  "place": {
7632
8511
  "type": "object",
@@ -7669,7 +8548,7 @@
7669
8548
  "required": [
7670
8549
  "asset"
7671
8550
  ],
7672
- "description": "Place a model or assets {action: '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."
8551
+ "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
8552
  },
7674
8553
  "prefab": {
7675
8554
  "type": "object",
@@ -7716,7 +8595,7 @@
7716
8595
  "type": "number"
7717
8596
  }
7718
8597
  },
7719
- "description": "Prefabs (stamps): mode \"save\" keeps objects (with their materials, flows and behaviours) as a assets {action: 'prefab'} in this person's library and returns its id; mode \"place\" puts copies of a assets {action: 'prefab'} into the scene with fresh ids (count + spacing for a row), one undo step."
8598
+ "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
8599
  },
7721
8600
  "image": {
7722
8601
  "type": "object",
@@ -7830,6 +8709,47 @@
7830
8709
  }
7831
8710
  },
7832
8711
  "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."
8712
+ },
8713
+ "upload": {
8714
+ "type": "object",
8715
+ "properties": {
8716
+ "data": {
8717
+ "type": "string",
8718
+ "description": "the file as base64 (or this chunk's part of it)"
8719
+ },
8720
+ "chunk": {
8721
+ "type": "object",
8722
+ "description": "{id, index (from 0), total}: one part of a big file; it lands when the last part arrives",
8723
+ "properties": {
8724
+ "id": {
8725
+ "type": "string"
8726
+ },
8727
+ "index": {
8728
+ "type": "integer"
8729
+ },
8730
+ "total": {
8731
+ "type": "integer"
8732
+ }
8733
+ }
8734
+ },
8735
+ "name": {
8736
+ "type": "string",
8737
+ "description": "a name for the library (the extension comes from the bytes)"
8738
+ },
8739
+ "folder": {
8740
+ "type": "string",
8741
+ "description": "Explorer folder (default \"Sounds\" or \"Skies\")"
8742
+ }
8743
+ },
8744
+ "required": [
8745
+ "data"
8746
+ ],
8747
+ "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."
8748
+ },
8749
+ "fonts": {
8750
+ "type": "object",
8751
+ "properties": {},
8752
+ "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
8753
  }
7834
8754
  },
7835
8755
  "required": [
@@ -7887,7 +8807,21 @@
7887
8807
  "height": {
7888
8808
  "type": "number",
7889
8809
  "minimum": 0,
7890
- "maximum": 40
8810
+ "maximum": 100,
8811
+ "description": "the highest peak, metres"
8812
+ },
8813
+ "amplitude": {
8814
+ "type": "number",
8815
+ "minimum": 0,
8816
+ "maximum": 40,
8817
+ "description": "the raw noise scale (height sets it for you)"
8818
+ },
8819
+ "paintBy": {
8820
+ "type": "string",
8821
+ "enum": [
8822
+ "height"
8823
+ ],
8824
+ "description": "paint the layers by height: layer 0 low, the last layer on the peaks"
7891
8825
  },
7892
8826
  "detail": {
7893
8827
  "type": "number"
@@ -7947,7 +8881,7 @@
7947
8881
  "description": "reshape even though it was hand-sculpted (the sculpting is lost)"
7948
8882
  }
7949
8883
  },
7950
- "description": "Make or change a effects {action: '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 effects {action: '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."
8884
+ "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
8885
  },
7952
8886
  "scatter": {
7953
8887
  "type": "object",
@@ -7987,10 +8921,50 @@
7987
8921
  },
7988
8922
  "rules": {
7989
8923
  "type": "object",
7990
- "description": "{slope: [0, 25] degrees from flat, height: [min, max] metres, layer: {i: paint layer 0-3, min: 0-1}}"
8924
+ "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
8925
  },
7992
8926
  "seed": {
7993
- "type": "integer"
8927
+ "type": "integer",
8928
+ "description": "the same seed puts them in the same spots; another seed, another layout"
8929
+ },
8930
+ "source": {
8931
+ "type": "string",
8932
+ "description": "the uuid of an object in the scene: scatter real copies of it (max 200) instead of asset"
8933
+ },
8934
+ "avoid": {
8935
+ "type": "array",
8936
+ "maxItems": 16,
8937
+ "items": {
8938
+ "anyOf": [
8939
+ {
8940
+ "type": "string"
8941
+ },
8942
+ {
8943
+ "type": "object",
8944
+ "properties": {
8945
+ "uuid": {
8946
+ "type": "string"
8947
+ },
8948
+ "position": {
8949
+ "type": "array",
8950
+ "items": {
8951
+ "type": "number"
8952
+ },
8953
+ "minItems": 3,
8954
+ "maxItems": 3
8955
+ },
8956
+ "radius": {
8957
+ "type": "number"
8958
+ }
8959
+ }
8960
+ }
8961
+ ]
8962
+ },
8963
+ "description": "places to keep clear: an object uuid (its footprint), {uuid, radius} or {position, radius} (a circle, metres)"
8964
+ },
8965
+ "id": {
8966
+ "type": "string",
8967
+ "description": "a name for the set (default from the first asset); remove takes it"
7994
8968
  },
7995
8969
  "tint": {
7996
8970
  "type": "number",
@@ -8018,7 +8992,7 @@
8018
8992
  "required": [
8019
8993
  "surface"
8020
8994
  ],
8021
- "description": "Scatter many instances over a effects {action: '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). Returns the set id; remove: <set id> deletes a set. One undo step."
8995
+ "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
8996
  },
8023
8997
  "water": {
8024
8998
  "type": "object",
@@ -8075,7 +9049,7 @@
8075
9049
  "type": "boolean"
8076
9050
  }
8077
9051
  },
8078
- "description": "Water: without uuid it makes a body of effects {action: '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 effects {action: '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."
9052
+ "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
9053
  },
8080
9054
  "particles": {
8081
9055
  "type": "object",
@@ -8119,14 +9093,14 @@
8119
9093
  "type": "boolean"
8120
9094
  }
8121
9095
  },
8122
- "description": "Particles by preset name: sparkles, fire, smoke, dust, confetti, sparks, trail, wisps, fireflies, rain, snow. Without object it places a small emitter 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."
9096
+ "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
9097
  },
8124
9098
  "sound": {
8125
9099
  "type": "object",
8126
9100
  "properties": {
8127
9101
  "asset": {
8128
9102
  "type": "string",
8129
- "description": "lib:<hash>, a library hash, or https://…"
9103
+ "description": "lib:<hash>, a library hash, pack:<name>/<file>, or https://…"
8130
9104
  },
8131
9105
  "object": {
8132
9106
  "type": "string",
@@ -8168,7 +9142,7 @@
8168
9142
  "required": [
8169
9143
  "asset"
8170
9144
  ],
8171
- "description": "A sound in the world: asset = a library sound (assets {action: 'search'} kinds [\"sound\"]) or an https URL of a sound file (it is checked and added to the library first). 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."
9145
+ "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
9146
  },
8173
9147
  "music": {
8174
9148
  "type": "object",
@@ -8191,7 +9165,7 @@
8191
9165
  "type": "boolean"
8192
9166
  }
8193
9167
  },
8194
- "description": "The scene's background music, heard by everyone in sync: asset = a library sound or an https URL (null clears it), volume 0-1, play / stop. One undo step."
9168
+ "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
9169
  }
8196
9170
  },
8197
9171
  "required": [
@@ -9306,7 +10280,7 @@
9306
10280
  {
9307
10281
  "name": "import_file",
9308
10282
  "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) or a .tpanim clip. 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.",
10283
+ "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
10284
  "inputSchema": {
9311
10285
  "type": "object",
9312
10286
  "properties": {
@@ -9603,7 +10577,7 @@
9603
10577
  {
9604
10578
  "name": "status",
9605
10579
  "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.",
10580
+ "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
10581
  "inputSchema": {
9608
10582
  "type": "object",
9609
10583
  "properties": {}
@@ -9617,7 +10591,7 @@
9617
10591
  {
9618
10592
  "name": "screenshot",
9619
10593
  "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.",
10594
+ "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
10595
  "inputSchema": {
9622
10596
  "type": "object",
9623
10597
  "properties": {
@@ -9628,12 +10602,13 @@
9628
10602
  "top",
9629
10603
  "front",
9630
10604
  "iso",
9631
- "focus"
10605
+ "focus",
10606
+ "camera"
9632
10607
  ]
9633
10608
  },
9634
10609
  "uuid": {
9635
10610
  "type": "string",
9636
- "description": "object to frame"
10611
+ "description": "object to frame, or the camera to look through (view camera)"
9637
10612
  },
9638
10613
  "uuids": {
9639
10614
  "type": "array",
@@ -9724,6 +10699,18 @@
9724
10699
  "size": {
9725
10700
  "type": "number",
9726
10701
  "description": "longest side in pixels"
10702
+ },
10703
+ "hud": {
10704
+ "type": "boolean",
10705
+ "description": "true = draw the game HUD this screen shows on top (score, timer, menus), laid out as on screen"
10706
+ },
10707
+ "avatars": {
10708
+ "type": "boolean",
10709
+ "description": "true = keep the people (avatars, an agent's camera marker) in the frame; default leaves them out, except view current"
10710
+ },
10711
+ "postEffects": {
10712
+ "type": "boolean",
10713
+ "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
10714
  }
9728
10715
  }
9729
10716
  },
@@ -9736,7 +10723,7 @@
9736
10723
  {
9737
10724
  "name": "wait_for_edit",
9738
10725
  "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.",
10726
+ "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
10727
  "inputSchema": {
9741
10728
  "type": "object",
9742
10729
  "properties": {