moonomat_edit
ChatGPTExact string replacement in a file of this chat's bundle (pass its id as bundle), the preferred way to change an existing file. old_string must match exactly (copy it from moonomat_read output without the line-number prefix) and be unique unless replace_all is true. An empty old_string creates the file. A .moon file is validated and run after the edit, with the same error report and spec pointers as moonomat_write. moonomat_get_started returns the Moon language summary, operation index and spec table of contents needed to write valid Moon.
moonomat_get_started
ChatGPTReturns the reference needed to write valid Moon, the YAML language of Moonomat designs: how the moonomat_ tools work together (write → run → render loop, scratch folder, units), a one-page summary of the language, the index of all Moon operations with their parameters, the specification's table of contents with section ids for moonomat_read_spec, and common mistakes. The text is the same on every call, so one call per conversation, before the first Moon write or edit, covers it. Everything else about Moon is in the spec sections.
moonomat_grep
ChatGPTRegex search over the text files of this chat's bundle (pass its id as bundle), returning matching lines with paths and line numbers, capped at 100 matches. Filter with include ("*.moon") and path. source="docs" searches the Moonomat user documentation instead, which answers questions about the app itself (sharing, publishing, embedding, terminal commands, viewer parameters, plans) and scripting beyond the Moon spec.
moonomat_job_status
ChatGPTFetches the result of a run or render that was still running when its tool call returned a job id. Results are kept for ten minutes and deleted once fetched.
moonomat_ls
ChatGPTLists files of this chat's bundle (pass its id as bundle) by glob pattern ("*/.moon", "parts/*"). include_metadata=true adds doc strings and parameters for .moon files, attached when 20 or fewer files match (a broader match returns a folder overview and the names). Pass source="docs" to list the Moonomat user documentation.
moonomat_move
ChatGPTMoves or renames a file of this chat's bundle (pass its id as bundle). The destination must not exist. Moving a .moon breaks its relative import: paths until they are fixed and the file is re-run.
moonomat_open
ChatGPTOpens this chat's Moonomat bundle in a viewer in the chat. Call it once at the start of every reply that changes or runs the design: without arguments to start the chat's bundle, then with bundle set to the id its result gave. Returns the bundle id and its files.
moonomat_read
ChatGPTReads a text file of this chat's bundle (pass its id as bundle), with line numbers (2,000 lines by default, use offset and limit for more). Pass source="docs" to read a page of the Moonomat user documentation instead. moonomat_edit matches its old_string against this content, so an existing file's current text comes from here.
moonomat_read_spec
ChatGPTReturns sections of the Moon language specification or the operation reference by id — a chapter/section id from the table of contents in moonomat_get_started ("moon-nodes/pipe-node"), an operation ("api/extrude" or just "Extrude"), or the id a validation error points at. Takes one id or a list of up to 8, returned together in one result (whole sections up to about 40,000 characters; the rest are named for a follow-up call). An operation's section gives the defaults and units the operation index leaves out; the section an error names explains the rule it broke. Sections include their complete example .moon documents.
moonomat_render
ChatGPTScreenshots a 3d model of this chat's bundle (pass its id as bundle) in the viewer in this chat, by default the output of the file run last (the .moon you just wrote, edited or ran). Pass file_path to render another .moon (it is run first if it has no output yet). The viewer keeps showing what it showed. With no camera parameters you get a 3×3 multi-view image (front, back, left, right, top, bottom and three isometric views) with a text caption naming the file and bundle. Pass camera_position and lookat_center together (glTF coordinates, meters) for one specific viewpoint, optionally with fov (degrees, small = a detail fills the image) and projection="ortho" (to compare with line drawings). The image is the only view of the geometry a write, edit or run produced: a .moon can validate and still be empty, mis-scaled or misplaced.
moonomat_rm
ChatGPTDeletes a file or folder of this chat's bundle (pass its id as bundle). Deleting a .moon also removes its outputs.
moonomat_run
ChatGPTEvaluates a .moon file of this chat's bundle (pass its id as bundle) without changing it and shows its output in the viewer in this chat. The result reports either the errors (with Moon error codes and spec sections) or a summary of the output: bounding box in millimetres, mesh and triangle counts, closedness and materials. moonomat_write and moonomat_edit already run the file they change. moonomat_run evaluates a file again, for example main.moon after a file it imports was edited, or to show another file in the viewer.
moonomat_status
ChatGPTReports this chat's bundle (pass its id as bundle): its files, how many versions it has and whether the viewer in this chat is open, without touching the bundle.
moonomat_widget_connect
ChatGPTConnects the Moonomat viewer in the chat to its bundle. Called by the viewer itself.
moonomat_widget_load
ChatGPTReturns where the Moonomat viewer in the chat loads its bundle version from. Called by the viewer itself.
moonomat_write
ChatGPTCreates or overwrites a file in this chat's bundle (pass its id as bundle). A .moon file is validated and run right away in the viewer in this chat: the result reports errors with line numbers, Moon error codes and the spec sections that explain them (moonomat_read_spec), or on success a summary of the 3d output, which the viewer then shows. The file is saved even when validation fails, so moonomat_edit can fix it in place. Overwriting replaces the whole file, moonomat_edit changes part of one. Files under scratch/ (probes, experiments) are never packed or published. moonomat_get_started returns the Moon language summary, operation index and spec table of contents needed to write valid Moon.