Skip to main content
Glama

Start the local Studio web UI

riv_studio

Launch a local web UI to live-preview and edit .riv files via hierarchy selection, live inspector edits, timeline markers, hot reload, and state-machine input controls.

Instructions

Start a local web UI (Rive-editor-like 3-pane layout) for live-previewing and editing a .riv file: hierarchy tree + click/drag selection on canvas + inspector (position/size/color/text edits apply live), timeline with keyframe markers, hot reload on file change, auto-generated state machine input controls, event log, and (with scenePath) direct scene-JSON editing. The UI also has an 'Instructions for AI' box — fetch those with riv_studio_notes. Re-running riv_create/riv_edit on the watched file updates the browser instantly. Only one studio runs at a time.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "riv_studio"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe .riv file to preview (watched for changes)
portNoPort (default 8787)
stopNoStop the running studio instead
shareNoAlso open a READ-ONLY view on the LAN (default false: Studio listens on 127.0.0.1 only). Returns a URL with an unguessable token; viewers can play/scrub/drive state-machine inputs but cannot edit, save, chat or write files. Plain HTTP, so only share on a network you trust.
scenePathNoScene spec JSON path — enables the edit+rebuild panel
shareHostNoLocal IPv4 address to listen on for the read-only view (default: the auto-detected LAN address; '0.0.0.0' = all interfaces)
sharePortNoPort for the read-only view (default: port + 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.8.0
    • addedInput schema / properties / share
      Added value: +{
      +  "description": "Also open a READ-ONLY view on the LAN (default false: Studio listens on 127.0.0.1 only). Returns a URL with an unguessable token; viewers can play/scrub/drive state-machine inputs but cannot edit, save, chat or write files. Plain HTTP, so only share on a network you trust.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / shareHost
      Added value: +{
      +  "description": "Local IPv4 address to listen on for the read-only view (default: the auto-detected LAN address; '0.0.0.0' = all interfaces)",
      +  "type": "string"
      +}
    • addedInput schema / properties / sharePort
      Added value: +{
      +  "description": "Port for the read-only view (default: port + 1)",
      +  "type": "integer"
      +}
  2. First observedv0.5.0

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does add useful behavior: hot reload, live-applied edits, the one-studio-at-a-time limit. But key operational facts are missing — whether the call blocks until stopped, what it returns (a URL? a port?), what happens on port conflict, and that stopping requires the separate stop flag. The LAN-sharing security caveat lives only in the schema, not the description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, followed by a capability list and then the sibling pointer and the singleton constraint. The feature enumeration is long but each item is substantive rather than filler; only the parenthetical layout description is arguably decorative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, long-running server tool with no annotations and no output schema, the description covers what the UI offers and points at riv_studio_notes, but omits lifecycle and return-value essentials an agent needs to invoke it correctly — blocking behavior, the URL/port it yields, and how stop interacts with a running instance.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all seven parameters including share, shareHost, sharePort and stop. The description only adds meaning for scenePath ('with scenePath, direct scene-JSON editing'); it says nothing about port, stop, or the share trio beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Start a local web UI ... for live-previewing and editing a .riv file') and enumerates the concrete capabilities (hierarchy tree, inspector, timeline, hot reload, state-machine controls, scene-JSON editing). It also names the sibling riv_studio_notes and what that sibling is for, so an agent can separate the two without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real usage context: re-running riv_create/riv_edit on the watched file refreshes the browser, and the riv_studio_notes box should be fetched separately. It also states the singleton constraint ('Only one studio runs at a time'). It never explicitly contrasts with alternatives such as riv_render_frame or riv_inspect, so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.