{"at":"2026-11-22T09:25:54.290Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-22T09:25:54.869Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-22T09:25:55.020Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-22T09:25:55.609Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{},"tools":{}},"protocolVersion":"2025-11-25","serverInfo":{"name":"robloxstudio-mcp","version":"4.0.0"}}}}
{"at":"2026-11-22T09:25:55.609Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-22T09:25:55.609Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-22T09:25:55.611Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Get instance hierarchy tree from Studio","inputSchema":{"properties":{"path":{"description":"Root path (default: game root)","type":"string"}},"type":"object"},"name":"get_file_tree"},{"description":"Search instances by name, class, or script content","inputSchema":{"properties":{"query":{"description":"Name, class, or code pattern","type":"string"},"searchType":{"description":"Search mode (default: name)","enum":["name","type","content"],"type":"string"}},"required":["query"],"type":"object"},"name":"search_files"},{"description":"Get place ID, name, and game settings","inputSchema":{"properties":{},"type":"object"},"name":"get_place_info"},{"description":"Get available services and their children","inputSchema":{"properties":{"serviceName":{"description":"Specific service name","type":"string"}},"type":"object"},"name":"get_services"},{"description":"Find instances by name, class, or properties","inputSchema":{"properties":{"propertyName":{"description":"Property name when searchType is \"property\"","type":"string"},"query":{"description":"Search query","type":"string"},"searchType":{"description":"Search mode (default: name)","enum":["name","class","property"],"type":"string"}},"required":["query"],"type":"object"},"name":"search_objects"},{"description":"Get all properties of an instance","inputSchema":{"properties":{"excludeSource":{"description":"For scripts, return SourceLength/LineCount instead of full source (default: false)","type":"boolean"},"instancePath":{"description":"Instance path (dot notation)","type":"string"}},"required":["instancePath"],"type":"object"},"name":"get_instance_properties"},{"description":"Get children and their class types","inputSchema":{"properties":{"instancePath":{"description":"Instance path (dot notation)","type":"string"}},"required":["instancePath"],"type":"object"},"name":"get_instance_children"},{"description":"Find objects with specific property values","inputSchema":{"properties":{"propertyName":{"description":"Property name","type":"string"},"propertyValue":{"description":"Value to match","type":"string"}},"required":["propertyName","propertyValue"],"type":"object"},"name":"search_by_property"},{"description":"Get properties/methods for a class","inputSchema":{"properties":{"className":{"description":"Roblox class name","type":"string"}},"required":["className"],"type":"object"},"name":"get_class_info"},{"description":"Recursively serialize an entire UI hierarchy into a nested JSON tree in one call. Returns all properties (with defaults stripped) and children. Perfect for reading existing UIs to understand structure or replicate them.","inputSchema":{"properties":{"instancePath":{"description":"Path to a ScreenGui or UI container (e.g. game.StarterGui.MainMenu)","type":"string"},"maxDepth":{"description":"Maximum tree depth to traverse (default: 50)","type":"number"}},"required":["instancePath"],"type":"object"},"name":"get_ui_tree"},{"description":"Extract design tokens from a UI hierarchy - returns color palette, fonts, corner radii, strokes, spacing, transparency patterns, and image assets sorted by frequency","inputSchema":{"properties":{"instancePath":{"description":"Path to a ScreenGui or UI container to analyze (e.g. game.StarterGui.MainMenu)","type":"string"}},"required":["instancePath"],"type":"object"},"name":"extract_ui_style"},{"description":"Get full game hierarchy tree. Increase maxDepth (default 3) for deeper traversal.","inputSchema":{"properties":{"maxDepth":{"description":"Max traversal depth (default: 3)","type":"number"},"path":{"description":"Root path (default: workspace root)","type":"string"},"scriptsOnly":{"description":"Show only scripts (default: false)","type":"boolean"}},"type":"object"},"name":"get_project_structure"},{"description":"Set a property on an instance","inputSchema":{"properties":{"instancePath":{"description":"Instance path (dot notation)","type":"string"},"propertyName":{"description":"Property name","type":"string"},"propertyValue":{"description":"Value to set (string, number, boolean, or object for Vector3/Color3/UDim2)"}},"required":["instancePath","propertyName","propertyValue"],"type":"object"},"name":"set_property"},{"description":"Set multiple properties on a single instance in one call","inputSchema":{"properties":{"instancePath":{"description":"Instance path (dot notation)","type":"string"},"properties":{"description":"Object mapping property names to values (e.g. {\"Size\": [4,1,4], \"Anchored\": true, \"Color\": [1,0,0]})","type":"object"}},"required":["instancePath","properties"],"type":"object"},"name":"set_properties"},{"description":"Set a property on multiple instances","inputSchema":{"properties":{"paths":{"description":"Instance paths","items":{"type":"string"},"type":"array"},"propertyName":{"description":"Property name","type":"string"},"propertyValue":{"description":"Value to set (string, number, boolean, or object for Vector3/Color3/UDim2)"}},"required":["paths","propertyName","propertyValue"],"type":"object"},"name":"mass_set_property"},{"description":"Get a property from multiple instances","inputSchema":{"properties":{"paths":{"description":"Instance paths","items":{"type":"string"},"type":"array"},"propertyName":{"description":"Property name","type":"string"}},"required":["paths","propertyName"],"type":"object"},"name":"mass_get_property"},{"description":"Create a new instance. Optionally set properties on creation.","inputSchema":{"properties":{"className":{"description":"Roblox class name","type":"string"},"name":{"description":"Optional name","type":"string"},"parent":{"description":"Parent instance path","type":"string"},"properties":{"description":"Properties to set on creation","type":"object"}},"required":["className","parent"],"type":"object"},"name":"create_object"},{"description":"Create multiple instances. Each can have optional properties.","inputSchema":{"properties":{"objects":{"description":"Objects to create","items":{"properties":{"className":{"description":"Roblox class name","type":"string"},"name":{"description":"Optional name","type":"string"},"parent":{"description":"Parent instance path","type":"string"},"properties":{"description":"Properties to set on creation","type":"object"}},"required":["className","parent"],"type":"object"},"type":"array"}},"required":["objects"],"type":"object"},"name":"mass_create_objects"},{"description":"Create entire UI hierarchy from nested JSON tree in one call. Each node has className, name, properties, and children array.","inputSchema":{"properties":{"parentPath":{"description":"Parent instance path where tree root is created","type":"string"},"tree":{"description":"Nested tree: { className, name?, properties?: {}, children?: [...] }","type":"object"}},"required":["parentPath","tree"],"type":"object"},"name":"create_ui_tree"},{"description":"Parse Luau UI code (Instance.new style) and create the instances in Studio. Accepts code from tutorials, generators, or scripts.","inputSchema":{"properties":{"code":{"description":"Luau code containing Instance.new() calls and property assignments","type":"string"},"parentPath":{"description":"Parent instance path where root UIs are created (e.g. game.StarterGui)","type":"string"}},"required":["parentPath","code"],"type":"object"},"name":"import_luau_ui"},{"description":"Delete an instance","inputSchema":{"properties":{"instancePath":{"description":"Instance path (dot notation)","type":"string"}},"required":["instancePath"],"type":"object"},"name":"delete_object"},{"description":"Duplicate with naming, positioning, and property variations","inputSchema":{"properties":{"count":{"description":"Number of duplicates","type":"number"},"instancePath":{"description":"Instance path (dot notation)","type":"string"},"options":{"properties":{"namePattern":{"description":"Name pattern ({n} placeholder)","type":"string"},"positionOffset":{"description":"X, Y, Z offset per duplicate","items":{"type":"number"},"type":"array"},"propertyVariations":{"description":"Property name to array of values","type":"object"},"rotationOffset":{"description":"X, Y, Z rotation offset","items":{"type":"number"},"type":"array"},"scaleOffset":{"description":"X, Y, Z scale multiplier","items":{"type":"number"},"type":"array"},"targetParents":{"description":"Different parent per duplicate","items":{"type":"string"},"type":"array"}},"type":"object"}},"required":["instancePath","count"],"type":"object"},"name":"smart_duplicate"},{"description":"Batch smart_duplicate operations","inputSchema":{"properties":{"duplications":{"description":"Duplication operations","items":{"properties":{"count":{"description":"Number of duplicates","type":"number"},"instancePath":{"description":"Instance path (dot notation)","type":"string"},"options":{"properties":{"namePattern":{"description":"Name pattern ({n} placeholder)","type":"string"},"positionOffset":{"description":"X, Y, Z offset per duplicate","items":{"type":"number"},"type":"array"},"propertyVariations":{"description":"Property name to array of values","type":"object"},"rotationOffset":{"description":"X, Y, Z rotation offset","items":{"type":"number"},"type":"array"},"scaleOffset":{"description":"X, Y, Z scale multiplier","items":{"type":"number"},"type":"array"},"targetParents":{"description":"Different parent per duplicate","items":{"type":"string"},"type":"array"}},"type":"object"}},"required":["instancePath","count"],"type":"object"},"type":"array"}},"required":["duplications"],"type":"object"},"name":"mass_duplicate"},{"description":"Get script source. Returns \"source\" and \"numberedSource\" (line-numbered). Use startLine/endLine for large scripts.","inputSchema":{"properties":{"endLine":{"description":"End line (inclusive)","type":"number"},"instancePath":{"description":"Script instance path","type":"string"},"startLine":{"description":"Start line (1-indexed)","type":"number"}},"required":["instancePath"],"type":"object"},"name":"get_script_source"},{"description":"Replace entire script source. For partial edits use edit/insert/delete_script_lines.","inputSchema":{"properties":{"instancePath":{"description":"Script instance path","type":"string"},"source":{"description":"New source code","type":"string"}},"required":["instancePath","source"],"type":"object"},"name":"set_script_source"},{"description":"Replace exact text in a script. old_string must match exactly once in the script (whitespace-sensitive). Use get_script_source first to see current content.","inputSchema":{"properties":{"instancePath":{"description":"Script instance path","type":"string"},"new_string":{"description":"Replacement text","type":"string"},"old_string":{"description":"Exact text to find and replace (must be unique in the script)","type":"string"}},"required":["instancePath","old_string","new_string"],"type":"object"},"name":"edit_script_lines"},{"description":"Insert lines after a given line number (0 = beginning).","inputSchema":{"properties":{"afterLine":{"description":"Insert after this line (0 = beginning)","type":"number"},"instancePath":{"description":"Script instance path","type":"string"},"newContent":{"description":"Content to insert","type":"string"}},"required":["instancePath","newContent"],"type":"object"},"name":"insert_script_lines"},{"description":"Delete a range of lines. 1-indexed, inclusive.","inputSchema":{"properties":{"endLine":{"description":"End line (inclusive)","type":"number"},"instancePath":{"description":"Script instance path","type":"string"},"startLine":{"description":"Start line (1-indexed)","type":"number"}},"required":["instancePath","startLine","endLine"],"type":"object"},"name":"delete_script_lines"},{"description":"Get an attribute value","inputSchema":{"properties":{"attributeName":{"description":"Attribute name","type":"string"},"instancePath":{"description":"Instance path (dot notation)","type":"string"}},"required":["instancePath","attributeName"],"type":"object"},"name":"get_attribute"},{"description":"Set an attribute. Supports primitives, Vector3, Color3, UDim2, BrickColor.","inputSchema":{"properties":{"attributeName":{"description":"Attribute name","type":"string"},"attributeValue":{"description":"Value (string, number, boolean, or object for Vector3/Color3/UDim2)"},"instancePath":{"description":"Instance path (dot notation)","type":"string"},"valueType":{"description":"Type hint if needed","type":"string"}},"required":["instancePath","attributeName","attributeValue"],"type":"object"},"name":"set_attribute"},{"description":"Get all attributes on an instance","inputSchema":{"properties":{"instancePath":{"description":"Instance path (dot notation)","type":"string"}},"required":["instancePath"],"type":"object"},"name":"get_attributes"},{"description":"Delete an attribute","inputSchema":{"properties":{"attributeName":{"description":"Attribute name","type":"string"},"instancePath":{"description":"Instance path (dot notation)","type":"string"}},"required":["instancePath","attributeName"],"type":"object"},"name":"delete_attribute"},{"description":"Get all tags on an instance","inputSchema":{"properties":{"instancePath":{"description":"Instance path (dot notation)","type":"string"}},"required":["instancePath"],"type":"object"},"name":"get_tags"},{"description":"Add a tag","inputSchema":{"properties":{"instancePath":{"description":"Instance path (dot notation)","type":"string"},"tagName":{"description":"Tag name","type":"string"}},"required":["instancePath","tagName"],"type":"object"},"name":"add_tag"},{"description":"Remove a tag","inputSchema":{"properties":{"instancePath":{"description":"Instance path (dot notation)","type":"string"},"tagName":{"description":"Tag name","type":"string"}},"required":["instancePath","tagName"],"type":"object"},"name":"remove_tag"},{"description":"Get all instances with a specific tag","inputSchema":{"properties":{"tagName":{"description":"Tag name","type":"string"}},"required":["tagName"],"type":"object"},"name":"get_tagged"},{"description":"Get all currently selected objects","inputSchema":{"properties":{},"type":"object"},"name":"get_selection"},{"description":"Execute Luau code in plugin context. Use print()/warn() for output. Return value is captured.","inputSchema":{"properties":{"code":{"description":"Luau code to execute","type":"string"},"target":{"description":"Instance target: \"edit\" (default), \"server\", \"client-1\", \"client-2\", etc.","type":"string"}},"required":["code"],"type":"object"},"name":"execute_luau"},{"description":"Ripgrep-inspired search across all script sources. Supports literal and Lua pattern matching, context lines, early termination, and results grouped by script with line/column numbers.","inputSchema":{"properties":{"caseSensitive":{"description":"Case-sensitive search (default: false)","type":"boolean"},"classFilter":{"description":"Only search scripts of this class type","enum":["Script","LocalScript","ModuleScript"],"type":"string"},"contextLines":{"description":"Number of context lines before/after each match (default: 0)","type":"number"},"filesOnly":{"description":"Only return matching script paths, not line details (default: false)","type":"boolean"},"maxResults":{"description":"Max total matches before stopping (default: 100)","type":"number"},"maxResultsPerScript":{"description":"Max matches per script (like rg -m)","type":"number"},"path":{"description":"Subtree to search (e.g. \"game.ServerScriptService\")","type":"string"},"pattern":{"description":"Search pattern (literal string or Lua pattern)","type":"string"},"usePattern":{"description":"Use Lua pattern matching instead of literal (default: false)","type":"boolean"}},"required":["pattern"],"type":"object"},"name":"grep_scripts"},{"description":"Get instance count statistics for the game - total instances, parts, scripts, UI objects, models, etc. with top class breakdown.","inputSchema":{"properties":{"path":{"description":"Subtree to analyze (default: \"game\")","type":"string"}},"required":[],"type":"object"},"name":"get_game_stats"},{"description":"Read Studio Output log messages (print, warn, error) without requiring a playtest. Returns recent log history from LogService.","inputSchema":{"properties":{"maxEntries":{"description":"Maximum log entries to return (default: 100)","type":"number"},"messageType":{"description":"Filter by message type (e.g. \"Enum.MessageType.MessageOutput\", \"Enum.MessageType.MessageWarning\", \"Enum.MessageType.MessageError\")","type":"string"}},"required":[],"type":"object"},"name":"get_output_log"},{"description":"Trace require() dependencies for a script - shows what it depends on and what other scripts depend on it.","inputSchema":{"properties":{"instancePath":{"description":"Path to the script to analyze","type":"string"},"path":{"description":"Subtree to search for dependencies (default: \"game\")","type":"string"}},"required":["instancePath"],"type":"object"},"name":"get_script_dependencies"},{"description":"Start playtest. Captures print/warn/error via LogService. Poll with get_playtest_output, end with stop_playtest. Use numPlayers for multi-client testing (server + N clients).","inputSchema":{"properties":{"mode":{"description":"Play mode","enum":["play","run"],"type":"string"},"numPlayers":{"description":"Number of client players (1-8). Triggers server + clients mode via TestService.","type":"number"}},"required":["mode"],"type":"object"},"name":"start_playtest"},{"description":"Stop playtest and return all captured output.","inputSchema":{"properties":{},"type":"object"},"name":"stop_playtest"},{"description":"Poll output buffer without stopping. Returns isRunning and captured messages.","inputSchema":{"properties":{"target":{"description":"Instance target: \"edit\" (default), \"server\", \"client-1\", \"client-2\", etc.","type":"string"}},"type":"object"},"name":"get_playtest_output"},{"description":"Undo the last change in Roblox Studio. Uses ChangeHistoryService to reverse the most recent operation.","inputSchema":{"properties":{},"type":"object"},"name":"undo"},{"description":"Redo the last undone change in Roblox Studio. Uses ChangeHistoryService to reapply the most recently undone operation.","inputSchema":{"properties":{},"type":"object"},"name":"redo"},{"description":"Export a Model/Folder into a compact, token-efficient build JSON format and auto-save it to the local build library. The output contains a palette (unique BrickColor+Material combos mapped to short keys) and compact part arrays with positions normalized relative to the bounding box center. The file is saved to build-library/{style}/{id}.json automatically.","inputSchema":{"properties":{"instancePath":{"description":"Path to the Model or Folder to export (dot notation)","type":"string"},"outputId":{"description":"Build ID for the output (e.g. \"medieval/cottage_01\"). Defaults to style/instance_name.","type":"string"},"style":{"description":"Style category for the build (default: misc)","enum":["medieval","modern","nature","scifi","misc"],"type":"string"}},"required":["instancePath"],"type":"object"},"name":"export_build"},{"description":"Create a new build model from scratch and save it to the library. Define parts using compact arrays [posX, posY, posZ, sizeX, sizeY, sizeZ, rotX, rotY, rotZ, paletteKey, shape?, transparency?]. Palette maps short keys to [BrickColor, Material] pairs. The build is saved and can be referenced by import_build or import_scene.","inputSchema":{"properties":{"bounds":{"description":"Optional bounding box [X, Y, Z]. Auto-computed if omitted.","items":{"type":"number"},"type":"array"},"id":{"description":"Build ID including style prefix (e.g. \"medieval/torch_01\", \"nature/bush_small\")","type":"string"},"palette":{"description":"Map of short keys to [BrickColor, Material] or [BrickColor, Material, MaterialVariant] tuples. E.g. {\"a\": [\"Dark stone grey\", \"Concrete\"], \"b\": [\"Brown\", \"Wood\", \"MyCustomWood\"]}","type":"object"},"parts":{"description":"Array of parts. Object format: {position:[x,y,z], size:[x,y,z], rotation:[x,y,z], paletteKey, shape?, transparency?}. Tuple format [posX,posY,posZ,sizeX,sizeY,sizeZ,rotX,rotY,rotZ,paletteKey,shape?,transparency?] also accepted.","items":{"anyOf":[{"additionalProperties":false,"properties":{"paletteKey":{"minLength":1,"type":"string"},"position":{"items":{"type":"number"},"maxItems":3,"minItems":3,"type":"array"},"rotation":{"items":{"type":"number"},"maxItems":3,"minItems":3,"type":"array"},"shape":{"enum":["Block","Wedge","Cylinder","Ball","CornerWedge"],"type":"string"},"size":{"items":{"type":"number"},"maxItems":3,"minItems":3,"type":"array"},"transparency":{"maximum":1,"minimum":0,"type":"number"}},"required":["position","size","rotation","paletteKey"],"type":"object"},{"items":{"anyOf":[{"type":"number"},{"type":"string"}]},"minItems":10,"type":"array"}]},"type":"array"},"style":{"description":"Style category","enum":["medieval","modern","nature","scifi","misc"],"type":"string"}},"required":["id","style","palette","parts"],"type":"object"},"name":"create_build"},{"description":"Procedurally generate a build via JS code. ALWAYS generate the entire scene in ONE call — never split into multiple small builds. PREFER high-level primitives over manual loops. No comments. No unnecessary variables. Maximize build detail per line.\n\nEDITING: When modifying an existing build, call get_build first to retrieve the original code. Then make ONLY the targeted changes the user requested — do not rewrite unchanged code. Pass the modified code to generate_build.\n\nHIGH-LEVEL (use these first — each replaces 5-20 lines):\n  room(x,y,z, w,h,d, wallKey, floorKey?, ceilKey?, wallThickness?) - Complete enclosed room (floor+ceiling+4 walls)\n  roof(x,y,z, w,d, style, key, overhang?) - style: \"flat\"|\"gable\"|\"hip\"\n  stairs(x1,y1,z1, x2,y2,z2, width, key) - Auto-generates steps between two points\n  column(x,y,z, height, radius, key, capKey?) - Cylinder with base+capital\n  pew(x,y,z, w,d, seatKey, legKey?) - Bench with seat+backrest+legs\n  arch(x,y,z, w,h, thickness, key, segments?) - Curved archway\n  fence(x1,z1, x2,z2, y, key, postSpacing?) - Fence with posts+rails\n\nBASIC:\n  part(x,y,z, sx,sy,sz, key, shape?, transparency?)\n  rpart(x,y,z, sx,sy,sz, rx,ry,rz, key, shape?, transparency?)\n  wall(x1,z1, x2,z2, height, thickness, key) — vertical plane from (x1,z1) to (x2,z2)\n  floor(x1,z1, x2,z2, y, thickness, key) — horizontal plane at height y, corners (x1,z1)-(x2,z2). NOT fill — only takes 2D corners+y, not 3D points\n  fill(x1,y1,z1, x2,y2,z2, key, [ux,uy,uz]?) — 3D volume between two 3D points\n  beam(x1,y1,z1, x2,y2,z2, thickness, key)\n\nIMPORTANT: Palette keys must match exactly. Use only keys defined in your palette object, not color names.\nCUSTOM MATERIALS: Use search_materials to find MaterialVariant names, then reference them as the 3rd palette element: {\"a\": [\"Color\", \"BaseMaterial\", \"VariantName\"]}.\n\nREPETITION:\n  row(x,y,z, count, spacingX, spacingZ, fn(i,cx,cy,cz))\n  grid(x,y,z, countX, countZ, spacingX, spacingZ, fn(ix,iz,cx,cy,cz))\n\nShapes: Block(default), Wedge, Cylinder, Ball, CornerWedge. Max 10000 parts. Math and rng() available.\nCYLINDER AXIS: Roblox cylinders extend along the X axis. For upright cylinders, use size (height, diameter, diameter) with rz=90. The column() primitive handles this automatically.\n\nEXAMPLE — compact cabin (17 lines):\nroom(0,0,0,8,4,6,\"a\",\"b\",\"a\")\nroof(0,4,0,8,6,\"gable\",\"c\")\nwall(-4,0,-2,4,0,-2,4,1,\"a\")\npart(0,2,3,3,3,0.3,\"a\",\"Block\",0.4)\nrow(-2,0,-1,3,0,2,(i,cx,cy,cz)=>{pew(cx,0,cz,3,2,\"d\")})\ncolumn(-3,0,-2,4,0.5,\"a\",\"b\")\ncolumn(3,0,-2,4,0.5,\"a\",\"b\")\npart(0,2,0,2,1,1,\"b\")","inputSchema":{"properties":{"code":{"description":"JavaScript code using the primitives above to generate parts procedurally","type":"string"},"id":{"description":"Build ID including style prefix (e.g. \"medieval/church_01\")","type":"string"},"palette":{"description":"Map of short keys to [BrickColor, Material] or [BrickColor, Material, MaterialVariant] tuples. E.g. {\"a\": [\"Dark stone grey\", \"Cobblestone\"], \"b\": [\"Brown\", \"WoodPlanks\", \"MyCustomWood\"]}. MaterialVariant is optional — use it to reference custom materials from MaterialService.","type":"object"},"seed":{"description":"Optional seed for deterministic rng() output (default: 42)","type":"number"},"style":{"description":"Style category","enum":["medieval","modern","nature","scifi","misc"],"type":"string"}},"required":["id","style","palette","code"],"type":"object"},"name":"generate_build"},{"description":"Import a build into Roblox Studio. Accepts either a full build data object OR a library ID string (e.g. \"medieval/church_01\") to load from the build library. When using generate_build or create_build, pass the build ID string instead of the full data.","inputSchema":{"properties":{"buildData":{"description":"Either a build data object (with palette, parts, etc.) OR a library ID string (e.g. \"medieval/church_01\") to load from the build library"},"position":{"description":"World position offset [X, Y, Z]","items":{"type":"number"},"type":"array"},"targetPath":{"description":"Parent instance path where the model will be created","type":"string"}},"required":["buildData","targetPath"],"type":"object"},"name":"import_build"},{"description":"List available builds in the local build library. Returns build IDs, styles, bounds, and part counts. Optionally filter by style.","inputSchema":{"properties":{"style":{"description":"Filter by style category","enum":["medieval","modern","nature","scifi","misc"],"type":"string"}},"type":"object"},"name":"list_library"},{"description":"Search for MaterialVariant instances in MaterialService by name. Use this to find custom materials before using them in generate_build or create_build palettes. Returns material names and their base material types.","inputSchema":{"properties":{"maxResults":{"description":"Max results to return (default: 50)","type":"number"},"query":{"description":"Search query to match against material names (case-insensitive). Leave empty to list all.","type":"string"}},"type":"object"},"name":"search_materials"},{"description":"Get a build from the library by ID. Returns metadata, palette, and generator code (if the build was created with generate_build). IMPORTANT: When the user asks to modify an existing build, ALWAYS call get_build first to retrieve the original code, then make targeted edits to only the relevant lines, and call generate_build with the modified code. Never rewrite the entire code from scratch — only change what the user asked to change.","inputSchema":{"properties":{"id":{"description":"Build ID (e.g. \"medieval/church_01\")","type":"string"}},"required":["id"],"type":"object"},"name":"get_build"},{"description":"Import a full scene layout. Provide a scene with model references (resolved from library) and placement data. Each model is placed at the specified position/rotation. Can also include inline custom builds.","inputSchema":{"properties":{"sceneData":{"description":"Scene layout object with: models (map of key to library build ID), place (array of [key, position, rotation?]), and optional custom (array of inline build objects with name, position, palette, parts)","properties":{"custom":{"description":"Array of inline custom builds with {n: name, o: [x,y,z], palette: {...}, parts: [...]}","items":{"type":"object"},"type":"array"},"models":{"description":"Map of short keys to library build IDs (e.g. {\"A\": \"medieval/cottage_01\"})","type":"object"},"place":{"description":"Array of placements. Preferred format: {modelKey, position:[x,y,z], rotation?:[x,y,z]}. Legacy tuple format [modelKey, [x,y,z], [rotX?,rotY?,rotZ?]] is also accepted.","items":{"anyOf":[{"additionalProperties":false,"properties":{"modelKey":{"type":"string"},"position":{"items":{"type":"number"},"type":"array"},"rotation":{"items":{"type":"number"},"type":"array"}},"required":["modelKey","position"],"type":"object"},{"items":{"anyOf":[{"type":"string"},{"items":{"type":"number"},"type":"array"}]},"type":"array"}]},"type":"array"}},"type":"object"},"targetPath":{"description":"Parent instance path for the scene (default: game.Workspace)","type":"string"}},"required":["sceneData"],"type":"object"},"name":"import_scene"},{"description":"Search the Creator Store (Roblox marketplace) for assets by type and keywords. Requires ROBLOX_OPEN_CLOUD_API_KEY env var.","inputSchema":{"properties":{"assetType":{"description":"Type of asset to search for","enum":["Audio","Model","Decal","Plugin","MeshPart","Video","FontFamily"],"type":"string"},"maxResults":{"description":"Max results to return (default: 25)","type":"number"},"query":{"description":"Search keywords","type":"string"},"sortBy":{"description":"Sort order (default: Relevance)","enum":["Relevance","Trending","Top","AudioDuration","CreateTime","UpdatedTime","Ratings"],"type":"string"},"verifiedCreatorsOnly":{"description":"Only show assets from verified creators (default: false)","type":"boolean"}},"required":["assetType"],"type":"object"},"name":"search_assets"},{"description":"Get detailed marketplace metadata for a specific asset (creator info, votes, description, pricing). Requires ROBLOX_OPEN_CLOUD_API_KEY env var.","inputSchema":{"properties":{"assetId":{"description":"The Roblox asset ID","type":"number"}},"required":["assetId"],"type":"object"},"name":"get_asset_details"},{"description":"Get the thumbnail image for an asset as base64 PNG, suitable for vision LLMs. Requires ROBLOX_OPEN_CLOUD_API_KEY env var.","inputSchema":{"properties":{"assetId":{"description":"The Roblox asset ID","type":"number"},"size":{"description":"Thumbnail size (default: 420x420)","enum":["150x150","420x420","768x432"],"type":"string"}},"required":["assetId"],"type":"object"},"name":"get_asset_thumbnail"},{"description":"Insert a Roblox asset into Studio by loading it via AssetService and parenting it to a target location. Optionally set position.","inputSchema":{"properties":{"assetId":{"description":"The Roblox asset ID to insert","type":"number"},"parentPath":{"description":"Parent instance path (default: game.Workspace)","type":"string"},"position":{"description":"Optional world position to place the asset","properties":{"x":{"type":"number"},"y":{"type":"number"},"z":{"type":"number"}},"type":"object"}},"required":["assetId"],"type":"object"},"name":"insert_asset"},{"description":"Preview a Roblox asset without permanently inserting it. Loads the asset, builds a hierarchy tree with properties and summary stats, then destroys it. Useful for inspecting asset contents before insertion.","inputSchema":{"properties":{"assetId":{"description":"The Roblox asset ID to preview","type":"number"},"includeProperties":{"description":"Include detailed properties for each instance (default: true)","type":"boolean"},"maxDepth":{"description":"Max hierarchy traversal depth (default: 10)","type":"number"}},"required":["assetId"],"type":"object"},"name":"preview_asset"},{"description":"Capture a screenshot of the Roblox Studio viewport and return it as a PNG image. Requires EditableImage API to be enabled: Game Settings > Security > \"Allow Mesh / Image APIs\". Only works in Edit mode with the viewport visible.","inputSchema":{"properties":{},"type":"object"},"name":"capture_screenshot"},{"description":"Simulate mouse input in the Roblox Studio viewport via VirtualInputManager. Use during playtest to click UI buttons, interact with objects, or navigate menus. Coordinates are viewport pixels (top-left is 0,0). Use capture_screenshot to identify UI element positions before clicking.","inputSchema":{"properties":{"action":{"description":"Mouse action to perform. \"click\" does mouseDown + short delay + mouseUp.","enum":["click","mouseDown","mouseUp","move","scroll"],"type":"string"},"button":{"description":"Mouse button (default: Left)","enum":["Left","Right","Middle"],"type":"string"},"scrollDirection":{"description":"Scroll direction (only for \"scroll\" action)","enum":["up","down"],"type":"string"},"target":{"description":"Instance target: \"edit\" (default), \"server\", \"client-1\", \"client-2\", etc.","type":"string"},"x":{"description":"Viewport pixel X coordinate","type":"number"},"y":{"description":"Viewport pixel Y coordinate","type":"number"}},"required":["action","x","y"],"type":"object"},"name":"simulate_mouse_input"},{"description":"Simulate keyboard input via VirtualInputManager. Use during playtest for character movement (W/A/S/D), jumping (Space), interactions (E), or any key-driven action. For sustained movement, use \"press\" to hold and \"release\" to let go.","inputSchema":{"properties":{"action":{"description":"\"tap\" (default) = press + wait + release. \"press\" = key down only. \"release\" = key up only.","enum":["press","release","tap"],"type":"string"},"duration":{"description":"Hold duration in seconds for \"tap\" action (default: 0.1). Use longer values for sustained input like walking.","type":"number"},"keyCode":{"description":"Enum.KeyCode name: \"W\", \"A\", \"S\", \"D\", \"Space\", \"E\", \"F\", \"LeftShift\", \"LeftControl\", \"Return\", \"Tab\", \"Escape\", \"One\", \"Two\", etc.","type":"string"},"target":{"description":"Instance target: \"edit\" (default), \"server\", \"client-1\", \"client-2\", etc.","type":"string"}},"required":["keyCode"],"type":"object"},"name":"simulate_keyboard_input"},{"description":"Move the player character to a target position or instance during playtest. Uses PathfindingService for automatic navigation around obstacles, falling back to direct movement. Requires an active playtest in \"play\" mode. Does NOT simulate player input - moves the character directly.","inputSchema":{"oneOf":[{"required":["position"]},{"required":["instancePath"]}],"properties":{"instancePath":{"description":"Instance to navigate to (dot notation). The character walks to its Position. Either this or position is required.","type":"string"},"position":{"description":"Target world position [x, y, z]. Either this or instancePath is required.","items":{"type":"number"},"type":"array"},"target":{"description":"Instance target: \"edit\" (default), \"server\", \"client-1\", \"client-2\", etc.","type":"string"},"timeout":{"description":"Max seconds to wait for navigation to complete (default: 25)","type":"number"},"waitForCompletion":{"description":"Wait for the character to arrive before returning (default: true)","type":"boolean"}},"type":"object"},"name":"character_navigation"},{"description":"Clone an instance to a new parent location. Creates a deep copy of the instance and all its descendants.","inputSchema":{"properties":{"instancePath":{"description":"Path of the instance to clone","type":"string"},"targetParentPath":{"description":"Path of the parent to place the clone under","type":"string"}},"required":["instancePath","targetParentPath"],"type":"object"},"name":"clone_object"},{"description":"Move (reparent) an instance to a new parent location. Preserves all children and properties.","inputSchema":{"properties":{"instancePath":{"description":"Path of the instance to move","type":"string"},"targetParentPath":{"description":"Path of the new parent","type":"string"}},"required":["instancePath","targetParentPath"],"type":"object"},"name":"move_object"},{"description":"Rename an instance.","inputSchema":{"properties":{"instancePath":{"description":"Path of the instance to rename","type":"string"},"newName":{"description":"New name for the instance","type":"string"}},"required":["instancePath","newName"],"type":"object"},"name":"rename_object"},{"description":"Get all descendants of an instance recursively with depth info. More efficient than repeated get_instance_children calls.","inputSchema":{"properties":{"classFilter":{"description":"Only include instances of this class (uses IsA, so \"BasePart\" matches Part, MeshPart, etc.)","type":"string"},"instancePath":{"description":"Root instance path","type":"string"},"maxDepth":{"description":"Maximum recursion depth (default: 10)","type":"number"}},"required":["instancePath"],"type":"object"},"name":"get_descendants"},{"description":"Diff two instances by comparing their properties. Useful for debugging why a duplicate behaves differently.","inputSchema":{"properties":{"instancePathA":{"description":"First instance path","type":"string"},"instancePathB":{"description":"Second instance path","type":"string"}},"required":["instancePathA","instancePathB"],"type":"object"},"name":"compare_instances"},{"description":"Run syntax analysis on Luau scripts using loadstring. Detects compile errors with line numbers. Pass a script path to analyze one script, or a container path to analyze all scripts under it.","inputSchema":{"properties":{"instancePath":{"description":"Instance path - either a script or a container whose descendant scripts will be analyzed","type":"string"}},"required":["instancePath"],"type":"object"},"name":"get_script_analysis"},{"description":"Set multiple attributes on an instance in a single call. More efficient than repeated set_attribute calls.","inputSchema":{"properties":{"attributes":{"description":"Map of attribute names to values. Supports Vector3, Color3, UDim2 via _type convention.","type":"object"},"instancePath":{"description":"Instance path","type":"string"}},"required":["instancePath","attributes"],"type":"object"},"name":"bulk_set_attributes"},{"description":"List all connected plugin instances with their roles. Use during multi-client playtest to discover server and client instances for targeted commands.","inputSchema":{"properties":{},"type":"object"},"name":"get_connected_instances"},{"description":"Upload an image file as a Decal asset to Roblox. Reads the file from disk, uploads via Open Cloud API, polls for completion, and returns the new asset ID. Requires ROBLOX_OPEN_CLOUD_API_KEY env var with asset:write scope. Also requires ROBLOX_CREATOR_USER_ID or ROBLOX_CREATOR_GROUP_ID env var (or pass userId/groupId as parameters).","inputSchema":{"properties":{"description":{"description":"Description for the decal asset (default: empty string)","type":"string"},"displayName":{"description":"Display name for the decal asset (max 50 characters)","type":"string"},"filePath":{"description":"Absolute path to the image file on disk (PNG, JPG, BMP, or TGA)","type":"string"},"groupId":{"description":"Roblox group ID for the asset creator. Overrides ROBLOX_CREATOR_GROUP_ID env var. Takes precedence over userId if both provided.","type":"string"},"userId":{"description":"Roblox user ID for the asset creator. Overrides ROBLOX_CREATOR_USER_ID env var.","type":"string"}},"required":["filePath","displayName"],"type":"object"},"name":"upload_decal"},{"description":"Find and replace text across all scripts in the game. Supports literal and Lua pattern matching. Use dryRun to preview changes before applying. Pairs with grep_scripts for search-only operations.","inputSchema":{"properties":{"caseSensitive":{"description":"Case-sensitive matching (default: false). Must be true when usePattern is true.","type":"boolean"},"classFilter":{"description":"Only search scripts of this class type","enum":["Script","LocalScript","ModuleScript"],"type":"string"},"dryRun":{"description":"Preview changes without applying them (default: false)","type":"boolean"},"maxReplacements":{"description":"Safety limit on total replacements (default: 1000)","type":"number"},"path":{"description":"Limit scope to a subtree (e.g. \"game.ServerScriptService\")","type":"string"},"pattern":{"description":"Text or Lua pattern to find","type":"string"},"replacement":{"description":"Replacement text. When usePattern is true, supports Lua captures (%1, %2, etc.).","type":"string"},"usePattern":{"description":"Use Lua pattern matching instead of literal (default: false). Requires caseSensitive: true.","type":"boolean"}},"required":["pattern","replacement"],"type":"object"},"name":"find_and_replace_in_scripts"}]}}}
