MR Studio
v0.75.0Build MR Studio tables (interactive city models) by describing them: layers, tours, dashboards.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
overview MR Studio overview
Start here. What MR Studio is, how a project is structured, what this core offers, and the workflow for building a project with these tools.
read_doc Read an MR Studio doc
Read a core document: "architecture", "roadmap", "changelog", a Help guide such as "guide/13-controller-pages", or a contract such as "contracts/site", "contracts/layer", "contracts/dashboard" (panels, data queries, text values, tone and showIf rules, drawings, charts, linked panels, pages that follow the table), "contracts/expressions" (safe formulas), "contracts/recording", "contracts/session" or "contracts/engine". Call with no name to list them.
| Parameter | Type | Description |
|---|---|---|
name | string | Doc name, e.g. "contracts/site" |
whats_new What's new in MR Studio
What changed in the core, newest first, from CHANGELOG.md: new layers, settings and fixes per version, and the notes merged since the last version. Use it when someone asks for something that may have been built recently, or to tell a team what an update brings.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many versions (default 5) |
since | string | Only versions newer than this one, e.g. "0.3.0" |
list_layers List layers
Layers that can go into a scene: the core layers of this MR Studio version (plus a site's own, if a site is given), and the planned layers on the roadmap with what each reuses.
| Parameter | Type | Description |
|---|---|---|
include_roadmap | boolean | Include planned roadmap layers (default true) |
site | string | Site folder, to include its own layers |
describe_layer Describe a layer
The full manifest of a layer: controls (with types, ranges, options and defaults), tools, required kernels and data, TV panels. Use it before choosing params.
| Parameter | Type | Description |
|---|---|---|
layer * | string | Core layer id, or ./layers/<name> for a site layer |
site | string | Site folder, needed for site layers |
list_building_blocks List building blocks
The shared primitives layers are composed from (visuals, data sources, interactions, TV panels), whether each is built or planned in this core, and the kernels. Superseded by find_capabilities with kind "block" or "kernel", which gives the same with evidence; this name works for this release only.
| Parameter | Type | Description |
|---|---|---|
group | string |
find_capabilities Find what MR Studio can do for a goal
Search everything MR Studio can do (layers, building blocks, kernels, site features) and what it cannot (planned items, constraints) for a goal, question or idea in plain words, e.g. "help residents see how a new development changes sun and wind". Returns ranked capabilities, each with why it matched, its status from the code (available, needs_setup, planned, unsupported), what it needs (data, keys, services), what the table, controller and phones do, what it pairs with, and the files that prove it. Use it before proposing an experience; a planned or unsupported capability is a development req…
| Parameter | Type | Description |
|---|---|---|
goal | string | What the people at the table should see, understand or do, in plain words |
kind | string | Only this kind |
limit | integer | How many (default 12; all when no goal) |
site | string | Site folder: check requirements against its data and services |
status | string | Only this status |
surface | string | Only capabilities that use this surface |
describe_capability Describe one capability
Everything known about one capability by id (from find_capabilities): purpose, questions it answers, status and why, requirements, surfaces, interactions, what it uses and pairs with, limits, example sites that use it, evidence files and related issues. For a layer, also its controls (the params a site sets).
| Parameter | Type | Description |
|---|---|---|
id * | string | e.g. "layer:sunlight", "block:phone-tools", "kernel:thermal", "site:ribbons", "constraint:table-3d" |
site | string | Site folder, to check requirements and include its own layers |
suggest_features Suggest features that fit an idea
Suggest 3 to 5 existing features that would help this idea and this table, including ones people would never search for (life on the map at rest, strips in the projector's margin, a second layer over the first, a guided tour with notes, a starter pack for designers). Give the person's goal in their words and the site: the table's shape, data, layers, languages and tour are read from site.json, and features already on are left out. Each suggestion has a one-line reason tied to the idea or the table, what it needs, and enable: the exact tool call that switches it on (or how, when nothing needs s…
| Parameter | Type | Description |
|---|---|---|
goal | string | The idea in the person's words, e.g. "an exhibition about the new tram line for residents" |
limit | integer | How many (default 5) |
site | string | Site folder: read what the table already has |
assess_experience Check an experience plan
Check a whole experience against what MR Studio can do, before building it. A plan is a title, a goal, the audience, and steps: each step is what the table shows and people do (want, or a layer chosen with find_capabilities as use), its settings, layers inside it (with), what the controller says, what phones do, and notes for the guide. Add layers at rest and other needs. Returns, per step and need, the layer that serves it and why, alternatives, setup still needed (data, services), param problems, a constraint it runs into, and gaps with the kind of development request they need; and a verdic…
| Parameter | Type | Description |
|---|---|---|
goal * | string | What people should leave understanding, having seen or having said |
steps * | array | |
title * | string | |
at_rest | array | Layers playing when nobody touches the controller, e.g. ["cars", "trees"] |
audience | string | |
guided | boolean | Make a guided sequence of the steps (default: yes for two or more steps) |
needs | array | Other things the experience needs that are not a step, e.g. "people vote on each other's ideas" |
site | string | Site folder: check data and services against it |
build_experience Build an experience plan
Build the parts of an experience plan that exist, in one validated change to the site: a layer for each buildable step (an existing instance is reused), the layers inside them, the layers at rest, and, for two or more steps, a guided sequence (a slideshow named after the plan) with each step's settings, title, controller text and notes. Steps that need development or run into a constraint are skipped and listed with their gaps; nothing that does not exist is written. Call assess_experience first and show the person the result.
| Parameter | Type | Description |
|---|---|---|
goal * | string | What people should leave understanding, having seen or having said |
site * | string | |
steps * | array | |
title * | string | |
at_rest | array | Layers playing when nobody touches the controller, e.g. ["cars", "trees"] |
audience | string | |
guided | boolean | Make a guided sequence of the steps (default: yes for two or more steps) |
needs | array | Other things the experience needs that are not a step, e.g. "people vote on each other's ideas" |
create_site Create a site
Create a new MR Studio site package (site.json, data/, requests/, README) in an empty folder. The table area is a width_m by height_m rectangle centred on lon/lat, rotated by rotation_deg.
| Parameter | Type | Description |
|---|---|---|
dir * | string | Folder to create the site in, e.g. "." for the current repository or "sites/harbour" |
height_m * | number | Height of the area on the table, metres |
lat * | number | Centre latitude, WGS84 |
lon * | number | Centre longitude, WGS84 |
name * | string | Display name, e.g. "Harbour district" |
timezone * | string | IANA time zone, e.g. Europe/Stockholm |
width_m * | number | Width of the area on the table, metres |
cell_m | number | Simulation cell size in metres (default 1, coarser for big areas) |
id | string | Lower-case id; derived from the name if omitted |
layers | array | Initial scene, bottom to top. Default: sunlight, active |
rotation_deg | number | Bearing of the table's top edge, clockwise from north |
table_width_cm | number | Physical table width; height follows the aspect ratio |
title | string | Title shown on the TV and in the window |
get_site Read a site
Read a site's site.json, its scene (layers bottom to top with effective params) and its current problems.
| Parameter | Type | Description |
|---|---|---|
site * | string | Site folder |
update_site Update site settings
Change site settings other than the scene. Settable in this core: name, origin, extent, timezone, table, scene, data, basemap, palette, tv, services, feeds, display, branding, data_licences. Among them: table (size, tile_cm, front, ribbons, glow: the ambient glow around the model, intro: build (the default), fade or zoom, how the table opens, intro_sound: reveal (the default), bloom or sunrise, the opening's music, intro_length: short, normal (the default) or long, how long the opening lasts), scene sources (buildings, terrain, trees, cell_m), basemap (style, black and white, brightness), bran…
| Parameter | Type | Description |
|---|---|---|
set * | object | e.g. { "branding": { "title": "Harbour 2040" }, "basemap": { "background": "#101418" } } |
site * | string | Site folder |
list_versions List saved versions of a table
The versions of site.json the MR Studio app keeps on this computer (its Version history, the last 200 changes), newest first: who made each (editor, controller, mcp, import, outside, history) and what it changed. Empty for a table the app has not opened on this computer.
| Parameter | Type | Description |
|---|---|---|
site * | string | Site folder |
limit | integer | How many (default 20) |
restore_version Go back to a saved version
Puts back a version from list_versions. The app records it as a new version on top ("Went back to: …"), so nothing is lost and Undo in the editor takes it back. Ask the person first: it replaces the current layers and settings.
| Parameter | Type | Description |
|---|---|---|
revision * | integer | The rev from list_versions |
site * | string | Site folder |
add_layer Add a layer to the scene
Add a core layer, a site layer (./layers/<name>) or a custom layer (custom:<id>) to the scene with optional params and start state. Params are checked against the layer's controls. Layers are drawn bottom to top; position defaults to the top. With parent, the layer becomes an item of that layer instead: it shows only while that layer is open (for example public transport inside a sun study) and has no button of its own.
| Parameter | Type | Description |
|---|---|---|
site * | string | |
use * | string | Core layer id, ./layers/<name> or custom:<id> |
active | boolean | Turn on at start; for an item, whether it comes on with its layer (default true) |
id | string | Instance id; default the layer id, then -2, -3… |
params | object | Control id to value, overriding defaults |
parent | string | Id of the layer this becomes an item of |
position | integer | Index to insert at in the scene, or in the parent's items (0 is the bottom); default top |
stack | Inside an X-ray glass (lens) or a Reveal line (swipe): 1 the surface, shown around the glass or on the far side of the line; 2 (default) underneath, shown through it (#606) |
set_layer Change a layer in the scene
Set params, the start state and the controller button of a layer or item already in the scene. Params merge into the existing overrides (null removes one) unless replace_params is true. The button's fields (name, description, icon, side, group, order, credit: a credit line under its name, legend: auto, full, compact or off) merge the same way; items have no button.
| Parameter | Type | Description |
|---|---|---|
site * | string | |
active | boolean | |
button | object | e.g. { "name": "Sun study", "group": "Simulations", "order": 1, "side": "left" } |
id | string | Instance id of a layer or item (from get_site); the surest way to name one |
index | integer | Position in the scene (0 is the bottom) |
params | object | |
replace_params | boolean | |
use | string | Layer id, if it appears once in the scene |
move_layer Reorder the scene
Move a layer or item to another position. Index 0 is drawn at the bottom, the last on top; a layer's items move with it. With parent, the entry becomes an item of that layer; with parent null, an item becomes a layer of the scene.
| Parameter | Type | Description |
|---|---|---|
site * | string | |
to * | integer | New index in the target list |
id | string | Instance id of a layer or item (from get_site); the surest way to name one |
index | integer | Position in the scene (0 is the bottom) |
parent | string | null | Layer to move it into; null for the scene itself; left out keeps it where it is |
use | string | Layer id, if it appears once in the scene |
remove_layer Remove a layer from the scene
Remove one layer (with its items) or one item. Sequence steps that showed it are removed too.
| Parameter | Type | Description |
|---|---|---|
site * | string | |
id | string | Instance id of a layer or item (from get_site); the surest way to name one |
index | integer | Position in the scene (0 is the bottom) |
use | string | Layer id, if it appears once in the scene |
set_steps Set how Next moves through a layer
Set or clear a layer's steps: mode (manual or timed), loop, reveal (what Next does after a step's sub-steps: stop or then-next), the sequence's default transition and transition_s and, for a sequence such as the slideshow, the sequence of steps. Each step shows another layer of the scene or one of the sequence's own items, by id, with optional params for that step only, duration_s, transition (cut, fade or dip: through the empty map) and transition_s, next, title, description, source and notes. notes are the presenter's words for that step: they show on the guide's phone (/guide) and in the ed…
| Parameter | Type | Description |
|---|---|---|
site * | string | |
steps * | e.g. { "mode": "manual", "loop": true, "sequence": [{ "layer": "sunlight", "params": { "hour": 9 }, "title": "Morning", "notes": "Ask who walks here before work." }] } | |
id | string | Instance id of a layer or item (from get_site); the surest way to name one |
index | integer | Position in the scene (0 is the bottom) |
use | string | Layer id, if it appears once in the scene |
save_custom_layer Save a custom layer
Save (or with recipe null, remove) a custom layer in the site: a recipe of blocks the runtime draws without code. A recipe has name, description, icon, category, data (each { id, and one of dataset | path | wms { url, layers, styles, format, source } | tiles }), look, motion and interaction (each a list of { id, block, data?, on?, props }), enter (cut or fade), controls (as in layer.json, with bind: "look.<block id>.<prop>", or "filter.<look id>.<column>" to show only matching features), interaction tap-info (props label, name, facts: the features become pickable, their facts on the controller…
| Parameter | Type | Description |
|---|---|---|
id * | string | Custom layer id: lowercase letters, digits and dashes |
recipe * | ||
site * | string |
import_data Bring data into a site
Bring a dataset into the site exactly as the editor's Add data does, with the same checks: from a file (GeoJSON, CSV with lon and lat, a zipped shapefile or a GeoPackage as agencies like SGU and Lantmäteriet hand them out (one layer at a time: the report lists the layers, pass layer to choose), GeoTIFF for terrain or for a raster of values such as data:soil-depth), from OpenStreetMap for the table's area (source osm: buildings, trees, walkways, data:roads), or free elevation for the ground (source elevation, target terrain). The coordinate system is detected and reprojected, and what lies off…
| Parameter | Type | Description |
|---|---|---|
site * | string | |
target * | string | buildings, trees, water, context (buildings around the table, felt only by the wind), walkways, trips, terrain, or data:<name> for any other dataset (data:roads, data:zones) |
crop | boolean | Leave out what lies well outside the table |
crs | string | For a terrain GeoTIFF that does not say: "EPSG:3006" |
file | string | Path of the file on this computer |
layer | string | For a zip of shapefiles or a GeoPackage with several layers: the layer name the report lists |
source | string | Default file; osm or elevation fetch for the table's area |
swap | boolean | The file has latitude first |
write | boolean | Save it (default false: check and report only) |
add_media Add a picture or video to a site
Copy a picture (PNG, JPEG, WebP, GIF) or video (MP4, WebM) into the site's data/media/, with the same checks as the editor, and return the path to use in a media layer or slide step. Needs the MR Studio app or the mrstudio command line.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path of the file on this computer |
site * | string |
add_sound Add a sound to a site
Copy a sound (WAV, MP3, OGG, M4A) into the site's data/sounds/, with the same checks as the editor, and return the path a points dataset names for a sound motion. Needs the MR Studio app or the mrstudio command line.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path of the file on this computer |
site * | string |
export_starter_pack Export a starter pack for outside tools
Make a starter pack (#450): the table's outline, tile grid, building footprints, street network, projection area and at-a-glance boxes as files to draw on in other programs, in one zip with a README of steps per program and how to bring the result back. QGIS gets GeoJSON (WGS84) and a picture placed by a world file; Illustrator a layered SVG at the table's real size (its "MR Studio guides" group is dropped when the drawing comes back as a Masterplan); Photoshop one transparent PNG per feature; PowerPoint a one-slide .pptx the table's shape. The table canvas is exactly the table's frame, so a p…
| Parameter | Type | Description |
|---|---|---|
out * | string | The zip to write, for example "Lindholmen starter pack.zip" |
site * | string | |
apps | array | Default all four |
canvas | string | table (default): comes back in place; projection: with the margins |
features | array | Default table, tiles, buildings, streets |
px_per_cm | number | Picture detail, default 20 |
list_site_files List the files in a site
What is in the site's data/ folder: datasets (GeoJSON, CSV) with feature counts, geometry types, columns (numbers with their range, text with its values when there are few) and bounds; pictures, video and sounds; 3D models. Each file says which site.json keys use it, so unused files and the right column for a custom layer's "by" are plain. Use the paths as they are in params, scene, data and recipes.
| Parameter | Type | Description |
|---|---|---|
site * | string | |
kind | string | Only this kind |
validate_site Validate a site
Check a site against the site and layer contracts: keys, geometry, data paths, layer ids, params. Also runs `mrstudio validate` (the app's own check, which bakes the scene) when the CLI is installed.
| Parameter | Type | Description |
|---|---|---|
site * | string | |
run_cli | boolean | Run the mrstudio CLI too (default true when found) |
preview_site How to preview a site
How to see a site running on this computer (Windows or macOS): with the installed MR Studio app (the usual way), or with the mrstudio CLI on a free port so it does not clash with the running app. Returns the command or steps and the URLs of the editor, table, controller, guide's phone, phone and dev views. Starts nothing.
| Parameter | Type | Description |
|---|---|---|
site * | string | |
lan | boolean | Let phones on the local network join |
sdk_reference Look up the layer SDK
What @mrstudio/sdk really exports, read from its source: functions, classes, constants, interfaces and types, each with its doc comment and declaration (an interface with its members, such as TableContext with ctx.publish, ctx.pointer, ctx.service). Search in words or by name ("rings that pulse", "service jobs", "ctx.sendTool", "defineLayer"). Write layer code only against what this returns; anything missing is a development request (kind sdk-runtime), never a copy of core code. Use find_capabilities first: most ideas need no code at all.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
name | string | One export by its exact name, in full |
query | string | Words or a name. Leave out for the list of SDK files and what each exports |
create_layer Start a site code layer
Create a layer with its own code inside a site, for what recipes and existing layers cannot do (check find_capabilities and save_custom_layer first). Runs `mrstudio layer new`: <site>/layers/<id>/ with layer.json, src/index.ts (table(), a primary action, a stat panel bound to ctx.publish and a custom panel), locales/sv.json, build.mjs and a README. With plain: true, index.js in plain JavaScript instead, which needs no build and no Node anywhere. It runs in the installed app without changing the core. Then edit the files, check_layer, build_layer, add_layer with use './layers/<id>', and preview…
| Parameter | Type | Description |
|---|---|---|
id * | string | Lowercase letters, digits and dashes: energy-flows |
site * | string | |
name | string | Its name on buttons and in the palette |
plain | boolean | Plain JavaScript in index.js, loaded as it is: no build step and no Node on any computer (#680). The SDK is globalThis.MRStudio.sdk. Best for a table whose computers have no Node, such as a managed st… |
check_layer Check a site code layer against the rules
Checks a site layer before it goes on a table: layer.json (api, id, controls, TV panels and a stage made of panels within the density budget or a map stage with at most 4 chip or tile panels, control and map panels naming real controls and tools, team widgets declared, text lengths), every word people see in locales/sv.json, the code (no longitudes and latitudes of a place, no talking to surfaces or the host behind ctx's back, only '@mrstudio/sdk' from the core), what it needs of the site (datasets, services, kernels), and whether dist/index.js is newer than its source. A layer whose stage is…
| Parameter | Type | Description |
|---|---|---|
id * | string | |
site * | string |
build_layer Build a site code layer
Bundles a site layer's src/ into dist/index.js with `mrstudio layer build` (esbuild; npm install on the first build), which is what the app loads; commit dist/ so the table's computer needs no Node. Returns the build's errors when it fails, and the layer's checks when it builds. Needs the mrstudio command line and Node 20+ on this computer.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
site * | string |
preview_layer How to see a site layer running
How to see a site layer on this computer: the dev view (/dev) opens the live table with the Developer workbench beside it (every widget at every size with its cost in reads, live shared values and params with bindings to copy, the controller as the 46-inch screen shows it, an action log, and problems such as refused panels or unpublished bindings); the composer (/compose) and editor show it too. Says first whether the layer is built and in the scene. Starts nothing.
| Parameter | Type | Description |
|---|---|---|
id * | string | |
site * | string | |
lan | boolean |
add_service Add an outside compute service to a site
Declare a model or API a site's code layers reach through the host (site.json "services"): a program the host starts with the table and keeps running (run: cwd, command with {port} and {python}, optional venv and requirements, env, health path) or a service elsewhere (url). Layers name it in requires.services and call ctx.service(id).get / post / job; the host caches the last answers, so the table still plays them when the service is down. Replaces a service with the same id. Keys go in the app's Sources and keys, never here. See samples/service-example.
| Parameter | Type | Description |
|---|---|---|
id * | string | What layers call it by: ecom |
site * | string | |
command | array | ["{python}", "-m", "uvicorn", "app.main:app", "--port", "{port}"] |
cwd | string | Its folder, relative to the site: services/ecom |
env | object | |
health | string | The path that answers 200 when ready; default / |
name | string | |
requirements | string | requirements.txt, installed into the venv |
start_s | number | |
url | string | A service that runs elsewhere: https://ecom.example.org |
venv | string | .venv, made on the first start |
add_feed Add a data feed to a site
A dataset from a web feed (site.json "feeds", #820): the host fetches it through a connection in the app's Sources and keys (source: its id; the person adds it there as a Data feed, with any key), page by page, every every_min minutes, and keeps the last good copy so the table works offline. Layers read it by name like any dataset (a custom layer's data { dataset: name }). The mapping says which field fills each role of an item (id, title, start, end, dates, repeat, lon, lat, place, address, category, link, free), as dotted paths in the rows, plus keep (other fields to carry; pictures never ar…
| Parameter | Type | Description |
|---|---|---|
name * | string | The dataset name layers use: events |
site * | string | |
credit | string | The credit the source asks for, shown under the layer while it is on (#831): "Source: goteborg.com/Göteborg & Co". Never in About |
display_name | string | Its name for people |
every_min | number | Minutes between fetches, default 60 |
groups | array | The category map (#826), tried in order: [{ "name": "Christmas", "colour": "@cat3", "match": ["Jul"], "season": "11-15/01-06" }, { "name": "Music & stage", "match": ["Konsert", "Jul"] }]. A category m… |
licence | string | The data licence named beside the credit: "CC BY 4.0" |
list | string | Where the items are in a JSON answer: events, data.items |
mapping | object | { "title": "title.rendered", "dates": "information.dates", "lat": "...", "lon": "...", "keep": ["pricing.free"] } |
other_colour | string | Its colour, default @neutral |
other_group | string | The group of items no group takes. Default Other |
pages | object | How to ask for more pages: { by: "page", param: "page", size_param: "per_page", size: 100 } |
path | string | Where the feed is on that server: /v1/events?lang=en |
preset | string | A ready-made feed (#833): goteborg-co fills in the source, address, pages, groups and credit for Göteborg & Co events (open, no key; the person adds "Göteborg & Co events" in Sources and keys). The… |
sample | string | An open https address of the feed, or a file of one of its answers, to read its fields from |
source | string | The Sources connection's id, such as goteborg-co. Required without preset |
venues | array | Positions for places the items name, added to the venue list: [{ "name": "Ullevi", "lon": 11.9866, "lat": 57.7058 }] |
draft_development_request Draft a development request
Write an actionable issue for the MR Studio core when an experience needs something it cannot do (a gap from assess_experience, or a planned or missing capability). Searches existing issues first and returns them: if one is a likely duplicate, do not file, comment there. Saves a markdown draft in <site>/requests/ and returns a prefilled issue link; nothing is sent. Kinds: layer-enhancement (A new control, tool, panel or option on an existing layer); new-layer (A new core layer, composed of building blocks that exist where possible); block (A new shared building block (a visual, data source or…
| Parameter | Type | Description |
|---|---|---|
acceptance * | array | Checks that say it is done |
context * | string | The site, the people at the table, and what they are trying to do |
kind * | string | One of layer-enhancement, new-layer, block, kernel, data-integration, interaction, site-setting, sdk-runtime, architecture, other (the older kinds and assess_experience's gap kinds are accepted) |
proposal * | string | What should exist, in plain words |
title * | string | Specific and short: "Voting on sketch marks from phones" |
user_story * | string | "As a <who>, I want <what>, so that <why>" |
dependencies | array | |
example | The layer.json or site.json fragment a team would write once it exists | |
experience | object | What each surface does with it |
limitations | string | What MR Studio does today and why that falls short |
references | array | |
related_capabilities | array | Capability ids it reuses or extends |
related_issues | array | Related issues this is not a duplicate of, and how it differs |
site | string | Site folder; the draft is saved in its requests/ folder |
technical | string | Blocks it could reuse, kernels, data, risks |
submit_development_request Send development requests
Open drafted development requests as GitHub issues on snjsomnath/mr-studio. Only after the person has read the drafts and said yes; one yes may cover the batch. Each draft is checked against existing issues again first and refused as possible_duplicate unless its number is in not_duplicate_of. Signs in with GITHUB_TOKEN, GH_TOKEN or the gh CLI; without one, or when GitHub refuses, nothing is sent and the prefilled link is returned. An issue number and link are reported only when GitHub returned them.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Draft paths in <site>/requests/ |
not_duplicate_of | array | Issue numbers the person agreed these are not duplicates of |
check_layer_idea Check a layer idea
Superseded by assess_experience (a one-step plan gives the same answer); this name works for this release only. Check a sketched layer against the core: which existing layers already cover it, which kernels and building blocks exist or are planned, and whether it should be configured from an existing layer, requested as a new core layer from existing blocks, or needs new blocks or kernels first.
| Parameter | Type | Description |
|---|---|---|
description * | string | What it shows and what people do with it |
title * | string | |
blocks | array | Block ids or names from list_building_blocks, e.g. ["field-overlay", "animated-paths"] |
data | array | Site data it reads |
kernels | array | Kernel ids it needs, e.g. ["sunlight"] |
site | string | |
tools | array |
draft_module_request Draft a module request
Superseded by draft_development_request, which also searches existing issues; this name works for this release only. Write a request for the MR Studio core team when a project needs something the core lacks, instead of writing custom code. Saves a markdown draft in <site>/requests/ and returns a prefilled GitHub issue link for snjsomnath/mr-studio. Nothing is sent. Kinds: layer-change (A new control, tool, panel or option on an existing core layer); layer (A new core layer composed of building blocks that already exist); block (A new shared building block (visual, data source or interaction) i…
| Parameter | Type | Description |
|---|---|---|
goal * | string | What the team wants to show or let people do |
kind * | string | |
proposal * | string | How it could be built from reusable blocks |
title * | string | Short, specific: "Animated paths block for vehicles along road data" |
why * | string | Who it is for and why existing layers and blocks fall short |
example | The layer.json or site.json fragment the team would write once it exists | |
missing | array | |
reuses | array | |
roadmap | array | |
site | string | Site folder; the draft is saved in its requests/ folder |
submit_module_request Submit a module request
Superseded by submit_development_request, which checks for duplicates and sends a batch; this name works for this release only. Open a drafted module request as a GitHub issue on the core repository. Only call this after the person has read the draft and agreed: it posts publicly. Uses GITHUB_TOKEN or GH_TOKEN, else a signed-in gh CLI, else returns the link to file by hand.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path of the draft in <site>/requests/ |