MCPVault

component.get

MCP tool from Openclaw Unity Plugin by TomLeeLive

Get component data

How to use it

component.get is exposed by the Openclaw Unity Plugin MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the component.get tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

FULL OPENCLAW UNITY PLUGIN LISTING

Other tools in Openclaw Unity Plugin (39)

app.getState

Get play mode, FPS, etc.

app.pause

Toggle pause (Editor)

app.play

Enter play mode (Editor)

app.stop

Exit play mode (Editor)

component.add

Add component to object

component.list

List available types

component.remove

Remove component

component.set

Set field/property value

console.clear

Clear captured logs

console.getErrors

Get error/exception logs (with optional warnings)

console.getLogs

Get Unity console logs (with type filter)

debug.hierarchy

Text hierarchy view

debug.log

Write to console

debug.screenshot

Capture screenshot (with UI)

editor.refresh

Refresh AssetDatabase (triggers recompile)

gameobject.create

Create GameObject or primitive

gameobject.delete

Delete a GameObject (alias for destroy)

gameobject.destroy

Destroy a GameObject

gameobject.find

Find by name, tag, or component type

gameobject.getAll

Get all GameObjects with filtering

gameobject.getData

Get detailed object data

gameobject.setActive

Enable/disable object

gameobject.setParent

Change parent

scene.getActive

Get active scene info

scene.getData

Get scene hierarchy data

scene.list

List all scenes in build settings

scene.load

Load a scene by name (Play mode)

scene.open

Open a scene in Editor mode

scene.save

Save active scene (Editor mode)

scene.saveAll

Save all open scenes (Editor mode)

script.execute

Execute code/methods (Debug.Log, Time.timeScale, PlayerPrefs, reflection calls)

script.list

List script files in project

script.read

Read script file contents

transform.getPosition

Get world position (x, y, z)

transform.getRotation

Get rotation in Euler angles

transform.getScale

Get local scale

transform.setPosition

Set world position

transform.setRotation

Set rotation (Euler)

transform.setScale

Set local scale