Reference

Studio protocol API

Reference the Studio bridge command model used by backend-owned NexusRBX workflows and the Roblox Studio plugin.

Updated June 28, 20268 min read

Protocol version

POST/api/studio/tool

Backend-owned endpoint shape for queueing Studio tool commands. The active protocol is 2026-06-20-phases1-9 and is validated by backend/src/lib/studioToolProtocol.js.

Command flow

CommandPurposeWrite risk
get_project_manifestList project structure and candidate scripts before source reads.Read-only
search_projectSearch manifest paths and object metadata.Read-only
search_sourceSearch known source text for matches.Read-only
read_scriptRead a targeted script after discovery narrows the scope.Read-only
write_scriptEdit a known script using expectedSourceHash.Write
insert_uploaded_roblox_modelInsert a trusted uploaded asset into Studio after confirmation.Write

Recommended command order

  1. Queue get_project_manifest.
  2. Search the manifest or indexed source.
  3. Read the specific script needed for the task.
  4. Generate an edit with expectedSourceHash.
  5. Snapshot and acknowledge destructive or write operations.

Important parameters

operationstring
The Studio command to execute, such as get_project_manifest, read_script, or write_script.
targetPathstring
The Studio hierarchy path for the target instance or script.
expectedSourceHashstring
Required for edits to known scripts so stale writes can return source_conflict.
idempotencyKeystring
A stable key for retryable operations so duplicate submissions can be handled safely.
applyModestring
Indicates whether a change should be held for manual review or applied by an approved workflow.

Structured errors

Source conflict responsejson
{  "ok": false,  "code": "source_conflict",  "message": "The script changed after it was read.",  "targetPath": "ServerScriptService/RoundController",  "recovery": "Read the script again and retry with the new expectedSourceHash."}
Was this page helpful?