Skip to main content

Unity Tool Reference

A complete list of Unity tools provided by OpenForge MCP. In Dynamic mode, you can use list_tools and get_tool_schema to retrieve details for each tool.

Scene​

Tool NameDescriptionMain Parameters
get_scene_infoGet current scene informationNone
create_sceneCreate a new scenename
open_sceneOpen an existing scenepath
save_sceneSave the current scenepath (omit to overwrite)
get_hierarchyGet the scene hierarchydepth (hierarchy depth to retrieve)

GameObject​

Tool NameDescriptionMain Parameters
create_gameobjectCreate a new GameObjectname, type, position, rotation, scale
delete_gameobjectDelete a GameObjecttarget
find_gameobjectFind a GameObject by namename, tag
get_gameobject_infoGet detailed object informationtarget
set_transformSet position, rotation, and scaletarget, position, rotation, scale
set_parentSet the parent objecttarget, parent
duplicate_gameobjectDuplicate an objecttarget, new_name
rename_gameobjectRename an objecttarget, new_name
set_activeToggle an object's active statetarget, active
add_componentAdd a componenttarget, component_type
remove_componentRemove a componenttarget, component_type
set_component_propertySet a component propertytarget, component_type, property, value

Material​

Tool NameDescriptionMain Parameters
create_materialCreate a new materialname, shader, color
set_materialApply a material to an objecttarget, material
get_material_infoGet material informationtarget
set_material_propertySet a material propertymaterial, property, value
set_material_textureSet a texturematerial, property, texture_path

Script​

Tool NameDescriptionMain Parameters
create_scriptCreate a C# scriptname, code, path
attach_scriptAttach a script to an objecttarget, script_name
get_script_sourceGet a script's source codescript_name
update_scriptUpdate a scriptname, code
list_scriptsList scripts in the projectpath (search path)

Screenshot​

Tool NameDescriptionMain Parameters
take_screenshotCapture a Scene View screenshotwidth, height
take_game_screenshotCapture a Game View screenshotwidth, height

Animation​

Tool NameDescriptionMain Parameters
create_animation_clipCreate an animation clipname, length
add_animation_keyframeAdd a keyframeclip, path, property, time, value
set_animator_controllerSet an Animator Controllertarget, controller
create_animator_stateCreate an animator statecontroller, state_name, clip
set_animation_curveSet an animation curveclip, path, property, keys
play_animationPlay an animationtarget, clip_name

Physics​

Tool NameDescriptionMain Parameters
add_rigidbodyAdd a Rigidbodytarget, mass, use_gravity, is_kinematic
add_colliderAdd a Collidertarget, type, is_trigger
set_physics_materialSet a physics materialtarget, friction, bounciness
add_jointAdd a Jointtarget, type, connected_body
set_rigidbody_constraintsSet Rigidbody constraintstarget, constraints
raycastExecute a raycastorigin, direction, max_distance

UI (User Interface)​

Tool NameDescriptionMain Parameters
create_canvasCreate a Canvasname, render_mode
create_ui_textCreate a Text elementname, text, font_size, color
create_ui_imageCreate an Image elementname, sprite, color
create_ui_buttonCreate a Buttonname, text, on_click
create_ui_panelCreate a Panelname, color, size
set_ui_rectSet a RectTransformtarget, anchors, position, size

Lighting​

Tool NameDescriptionMain Parameters
create_lightCreate a lightname, type, color, intensity, position, rotation
set_light_propertyModify a light propertytarget, property, value
set_ambient_lightSet ambient lightingcolor, intensity, mode
set_fogSet fogenabled, color, mode, density
set_skyboxSet the skyboxmaterial
bake_lightingBake lightmapsquality

Camera​

Tool NameDescriptionMain Parameters
set_cameraSet camera position and rotationposition, rotation, fov
get_camera_infoGet camera informationtarget
create_cameraCreate a new cameraname, position, rotation, fov
set_camera_propertyModify a camera propertytarget, property, value

Prefab​

Tool NameDescriptionMain Parameters
create_prefabCreate a prefab from an objecttarget, path
instantiate_prefabInstantiate a prefabpath, position, rotation
apply_prefab_overridesApply prefab overridestarget
unpack_prefabUnpack a prefabtarget, mode

Audio​

Tool NameDescriptionMain Parameters
add_audio_sourceAdd an AudioSourcetarget, clip, volume, loop
set_audio_propertySet an audio propertytarget, property, value
create_audio_mixerCreate an Audio Mixername
set_audio_mixer_paramSet a Mixer parametermixer, param, value

Terrain​

Tool NameDescriptionMain Parameters
create_terrainCreate a Terrainname, width, height, length
set_terrain_heightSet terrain heighttarget, heights, offset_x, offset_y
paint_terrain_texturePaint a terrain texturetarget, layer, position, radius, opacity
add_terrain_layerAdd a Terrain Layertarget, texture, normal_map, tile_size
place_terrain_treesPlace trees on the terraintarget, prefab, positions, density
set_terrain_detailSet grass and detail meshestarget, prototype, density
Tool NameDescriptionMain Parameters
bake_navmeshBake a NavMeshagent_radius, agent_height, step_height
add_navmesh_agentAdd a NavMeshAgenttarget, speed, radius, height
set_navmesh_destinationSet the agent destinationtarget, destination
add_navmesh_obstacleAdd a NavMesh Obstacletarget, shape, carve
add_offmesh_linkAdd an OffMeshLinkstart, end, bidirectional

VFX (Visual Effects)​

Tool NameDescriptionMain Parameters
create_particle_systemCreate a Particle Systemname, position, preset
set_particle_propertyModify a particle propertytarget, module, property, value
create_trail_rendererCreate a Trail Renderertarget, time, width, color
create_line_rendererCreate a Line Renderertarget, points, width, color

Optimization​

Tool NameDescriptionMain Parameters
get_scene_statsGet scene statisticsNone
set_static_flagsSet Static flagstarget, flags
set_lod_groupSet a LOD Grouptarget, lod_levels
set_occlusion_areaSet an Occlusion Areaposition, size
batch_set_qualityBatch-set texture qualitymax_size, compression

Build​

Tool NameDescriptionMain Parameters
build_projectBuild the projecttarget_platform, output_path, scenes
get_build_settingsGet build settingsNone
set_build_settingsModify build settingsplatform, settings
switch_platformSwitch the target platformplatform