Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
RBX_STUDIONoDefault target Studio (name substring or place id).
RBX_SYNC_DIRNoDefault sync folder.
RBX_TIMEOUT_MSNoPer-call timeout in milliseconds (default 60000).60000
RBX_UPSTREAM_CMDNoJSON array overriding the Studio bridge command.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Roblox Studio bridge (rbx-studio-plus). No studio_id needed: the open Studio is picked automatically. Workflow:

  1. studio_status & game_overview — see connected Studio, mode, services, scripts, Remotes, and tags in 1 call.

  2. Scripts: sync_pull once (pass sourcemap=true for Luau LSP / luau-analyze), then read/edit/grep local files under ./roblox-src and sync_push (or sync_watch on=true). script_read / script_write / script_edit / script_grep also work directly.

  3. World & UI: tree / inspect / set_props (supports batch paths, tag selector, ColorSequence, NumberSequence, Font, Rect, CollectionService tags) / instance (supports nested children trees) / luau_run. selection = what the user selected.

  4. Verify: script_check (syntax + require() cycle/path/GetService checks), then playtest (captures BOTH Server and Client errors, supports wait_for_player, server_code, client_code).

  5. console shows new Output lines per datamodel (plugin noise filtered). history undo reverts mistakes. Other Studio tools (save_place, generate_*, insert_asset, screen_capture, input simulation, …) are available with the same names.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
studio_statusA

START HERE. One call shows: connected Studio instances (and which one is targeted), play mode, available datamodels, PlaceId, script-sync state and recent sync activity.

studio_selectA

Choose which open Studio instance all following calls target (only needed when several are open).

game_overviewB

One-call architectural overview of the place: PlaceId, services with script/child counts, all Remotes & Bindables, all CollectionService tags, Lighting & StarterPlayer settings.

luau_runA

Run Luau in Studio and get back print/warn output, the return value (Instances, Vector3, tables… are serialized) and errors with line numbers. Use for queries and one-off edits; changes are undoable (history action=undo). Code runs on Studio's main thread: in long loops call task.wait() every ~1000 iterations. Top-level return works.

consoleA

Read Studio's Output window. By default returns only lines that are new since your previous console call (tracked per datamodel). Errors are prefixed [E], warnings [W]. Studio plugin noise is hidden by default.

playA

Start or stop a playtest (waits until Studio has actually switched), or report the current mode.

playtestA

One-shot verification: starts a playtest, optionally waits for player/character spawn, runs optional server and/or client Luau assertions, waits, collects errors/warnings/prints from BOTH Server and Client Output, then stops. Use after changes to verify runtime behaviour.

treeA

Compact view of the instance hierarchy (Name [Class] (+N hidden children)). With class/name/tag filters, lists matching instances with full ~N-disambiguated paths. Faster and terser than search_game_tree.

inspectC

Properties, attributes, CollectionService tags, and children summary of an instance (supports ~N disambiguation, dots in names, and playtest datamodels).

set_propsA

Set properties, attributes, and/or CollectionService tags on one instance (path), several (paths), or all instances with a tag. Supports: Size:[2,3,4], Color:[255,0,0] or "#ff0000", Material:"Neon", CFrame:[x,y,z] or [x,y,z,rx,ry,rz] (deg), UDim2:[xs,xo,ys,yo], Rect:[x0,y0,x1,y1], ColorSequence:["#f00","#00f"], NumberSequence:[0,1], Font:"GothamBold", PhysicalProperties:[d,f,e], {"Enum":"Material.Neon"}, {"ref":"Workspace.Other"}, {"nil":true}. Undoable.

instanceA

Create (with optional recursive children tree & tags), delete, move (reparent), clone or rename instances. Undoable. For scripts prefer script_write or file sync.

script_readA

Read a script's source (includes unsaved editor changes), with line numbers. Prefer the local files if the place is synced (sync_pull).

script_writeA

Replace a script's whole source, creating the script (and missing parent Folders) if needed. Undoable.

script_editA

Exact search/replace edits in one script (atomic, supports ~N & dots in names). Each old must match exactly once unless all=true. Undoable.

script_grepA

Search across all scripts in Studio (or under paths) for a substring or /regex/. Returns ~N-safe paths, line numbers, and matching lines.

script_checkA

Compile every script (or those under given paths) for syntax errors AND statically check require() cycles, broken require() paths, and GetService() typos. Optionally runs local luau-analyze/selene if synced.

selectionA

Get the instances the user currently has selected in Studio (great for 'fix this'), or set the selection.

historyA

Undo or redo the last change(s) in Studio (every tool edit is recorded as an undo step).

sync_pullA

Export the place's scripts to a local folder (Rojo-style: .server.luau / .client.luau / .luau) so you can read/edit/grep them with your normal file tools. Safe to re-run: only changed files are rewritten; files edited on both sides produce a .studio conflict copy instead of being overwritten.

sync_pushA

Send locally edited/new script files to Studio. Refuses to overwrite scripts that were also changed in Studio since the last sync (conflict) unless force. New files are created (class from suffix, optional --!runcontext client|server). Deleted files are only deleted in Studio with delete_missing.

sync_statusB

What differs between the local folder and Studio: local edits, Studio edits, new/removed scripts, conflicts. Read-only.

sync_watchA

Live two-way sync: local file saves are pushed to Studio automatically, and edits made in Studio are pulled every few seconds. Pulls first if the folder is not synced yet.

sync_sourcemapA

Generate a Rojo-compatible sourcemap.json (and optional .luaurc) from Studio so Luau LSP, luau-analyze, and coding agents resolve require() paths and instances.

Prompts

Interactive templates invoked by user choice

NameDescription
roblox-workflowOrient yourself on the connected Roblox Studio project and sync scripts.
verify-and-playtestRun static checks and a Server+Client playtest to verify the game.

Resources

Contextual data attached and managed by the client

NameDescription
Studio statusConnected studios, play mode, sync state
Game overviewServices, script counts, Remotes, tags, Lighting & StarterPlayer
Console outputRecent Studio Output log (plugin noise filtered)

TDQS

B3.4/5.0

Scored across 23 tools

Disambiguation4/5

Most tools have clearly distinct targets: script_read/write/edit/grep/check, instance, set_props, inspect, tree, and the sync_* family each do one obvious thing. The only genuinely confusable pairs are play vs playtest (start/stop a session vs one-shot verified run) and tree vs game_overview vs inspect, but descriptions disambiguate them (agents directed to tree as faster/terser, game_overview as a single architecture dump).

Naming Consistency3/5

There are strong prefix families (script_*, sync_*, studio_*), but the overall convention is mixed: noun_verb (script_read, luau_run, game_overview), verb_noun (set_props, sync_pull), and bare nouns/verbs (tree, inspect, instance, selection, history, play, playtest, console). Readable overall but no single predictable pattern an agent can extrapolate from.

Tool Count4/5

23 tools is on the heavy side, but the surface spans several genuinely different concerns (script I/O, hierarchy inspection, playtesting, undo, local sync), and each tool maps to a real operation. The five sync_* tools are the only cluster that could arguably be trimmed for a lighter footprint.

Completeness4/5

Coverage of the core domain is strong: read/write/edit scripts, create/delete/clone/reparent instances, set properties and tags, search, lint, playtest verification, output reading, undo/redo, and local file sync. Gaps are peripheral rather than blocking: no screenshot/visual capture, no place save/publish or open/close operations, and no asset/marketplace tooling.

Maintenance

ActivityMaintained
ResponsivenessOutdated data