{"ok":true,"site":{"host":"vorticoncmdr.github.io","url":"https://vorticoncmdr.github.io/lemmings/","type":"live","desc":"","tools":[{"name":"editorGetState","kind":"answer","impl":"imperative","description":"Get the level editor's current state: metadata, piece/object/steel counts, selection, undo/redo availability, and the current validation error (if any).","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorListPlacedPieces","kind":"act","impl":"imperative","description":"List every placed terrain piece, object piece, and steel area in the current level, with their uids/positions — use these uids with editorSelect*/editorDeleteSelected* tools.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorListTerrainCatalog","kind":"act","impl":"imperative","description":"List the terrain piece ids available to place for the current pack/style, with their pixel dimensions.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorListObjectCatalog","kind":"act","impl":"imperative","description":"List the object ids (exits, traps, hazards, decorations) available to place for the current pack/style, with their pixel dimensions.","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorListSavedLevels","kind":"answer","impl":"imperative","description":"List custom levels saved in this browser (id, title, timestamps).","annotations":{"readOnlyHint":true},"inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorNewLevel","kind":"act","impl":"imperative","description":"Start a brand-new blank level in the editor, discarding the current one (does not delete anything already saved).","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorLoadLevel","kind":"act","impl":"imperative","description":"Load a previously-saved custom level into the editor, by id or by exact title.","inputSchema":{"type":"object","properties":{"idOrTitle":{"type":"string"}},"required":["idOrTitle"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorDeleteSavedLevel","kind":"transact","impl":"imperative","description":"Permanently delete a saved custom level, by id or by exact title.","inputSchema":{"type":"object","properties":{"idOrTitle":{"type":"string"}},"required":["idOrTitle"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorSetMetadata","kind":"act","impl":"imperative","description":"Set any subset of the level's metadata fields: title, initLemmings, minReleaseRate, saveLemmings, playTimeSeconds, musicTrack (1-9), lemmingTypes (per-skill counts).","inputSchema":{"type":"object","properties":{"title":{"type":"string"},"initLemmings":{"type":"number"},"minReleaseRate":{"type":"number"},"saveLemmings":{"type":"number"},"playTimeSeconds":{"type":"number"},"musicTrack":{"type":"number"},"lemmingTypes":{"type":"object","properties":{"climb":{"type":"number"},"float":{"type":"number"},"explode":{"type":"number"},"block":{"type":"number"},"build":{"type":"number"},"bash":{"type":"number"},"mine":{"type":"number"},"dig":{"type":"number"}}}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorSetPackAndStyle","kind":"act","impl":"imperative","description":"Switch the level's graphics pack and/or style. Clears every placed terrain/object piece if either changes (a level uses one pack+style, like the original game) — undoable via editorUndo.","inputSchema":{"type":"object","properties":{"pack":{"type":"string","description":"A gamedataPacks.js pack key, or \"custom\" for an authored graphics pack."},"style":{"description":"Numeric DOS style index, or (for pack:\"custom\") a saved graphics-pack record id."}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorResizeGridWidth","kind":"act","impl":"imperative","description":"Resize the level's grid width (160-2000 cells). Shrinking discards painted terrain past the new width, with no confirmation prompt.","inputSchema":{"type":"object","properties":{"newWidth":{"type":"number"}},"required":["newWidth"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorPlaceTerrainPiece","kind":"act","impl":"imperative","description":"Place a terrain piece (from editorListTerrainCatalog) centered at world pixel x,y.","inputSchema":{"type":"object","properties":{"pieceId":{},"x":{"type":"number"},"y":{"type":"number"},"flipY":{"type":"boolean"},"noOverwrite":{"type":"boolean"},"erase":{"type":"boolean"}},"required":["pieceId","x","y"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorSelectTerrainPiece","kind":"act","impl":"imperative","description":"Select (or, with uid omitted/null, deselect) a placed terrain piece by uid.","inputSchema":{"type":"object","properties":{"uid":{}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorDeleteSelectedTerrainPiece","kind":"transact","impl":"imperative","description":"Delete the currently-selected placed terrain piece.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorPlaceObjectPiece","kind":"act","impl":"imperative","description":"Place an object (from editorListObjectCatalog — exits, traps, hazards, decorations) centered at world pixel x,y.","inputSchema":{"type":"object","properties":{"objectId":{},"x":{"type":"number"},"y":{"type":"number"},"flipY":{"type":"boolean"}},"required":["objectId","x","y"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorSelectObjectPiece","kind":"act","impl":"imperative","description":"Select (or, with uid omitted/null, deselect) a placed object piece by uid.","inputSchema":{"type":"object","properties":{"uid":{}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorDeleteSelectedObjectPiece","kind":"transact","impl":"imperative","description":"Delete the currently-selected placed object piece.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorPlaceSteelArea","kind":"act","impl":"imperative","description":"Place a rectangular indestructible steel area at world pixel x,y with the given width/height.","inputSchema":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}},"required":["x","y","width","height"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorSelectSteelArea","kind":"act","impl":"imperative","description":"Select (or, with uid omitted/null, deselect) a placed steel area by uid.","inputSchema":{"type":"object","properties":{"uid":{}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorDeleteSelectedSteelArea","kind":"transact","impl":"imperative","description":"Delete the currently-selected placed steel area.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorNudgeSelection","kind":"act","impl":"imperative","description":"Move whichever of the currently-selected terrain piece/object/steel area by dx,dy pixels.","inputSchema":{"type":"object","properties":{"dx":{"type":"number"},"dy":{"type":"number"}},"required":["dx","dy"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorDeleteSelection","kind":"transact","impl":"imperative","description":"Delete whichever of the terrain piece/object/steel area is currently selected.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorToggleEntrance","kind":"act","impl":"imperative","description":"Add a manual entrance marker at world pixel x,y, or remove one already there (within a small hit radius).","inputSchema":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorUndo","kind":"act","impl":"imperative","description":"Undo the last placement/move/delete/resize/pack-or-style-switch action.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorRedo","kind":"act","impl":"imperative","description":"Redo the last undone action.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorSaveLevel","kind":"act","impl":"imperative","description":"Save the current level to this browser's custom-level storage (updates it in place if it was loaded from a saved level, otherwise creates a new one). Fails if the level has no entrance yet.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorPlaytest","kind":"act","impl":"imperative","description":"Validate and playtest the current level — navigates to game.html?mode=playtest, ending the editor page. Fails without navigating if the level has no entrance yet.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"},{"name":"editorBackToMenu","kind":"act","impl":"imperative","description":"Exit the editor back to the main menu, discarding any unsaved changes with no confirmation prompt.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/lemmings/"}],"category":"Media & Personal","favicon":"/favicons/vorticoncmdr.github.io.png","apiSurface":"spec","toolCount":28}}