Skip to main content
Glama

gameobject-component-get

Retrieve detailed information about a specific component on a Unity GameObject, including its type, enabled state, and serialized fields or properties, to inspect component data before making modifications.

Instructions

Get detailed information about a specific Component on a GameObject. Returns component type, enabled state, and optionally serialized fields and properties. Use this to inspect component data before modifying it. Use 'gameobject-find' tool to get the list of all components on the GameObject.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gameObjectRefYesTarget GameObject. SCHEMA: {"name":"ObjectName"} or {"instanceID":12345}
componentRefYesComponent to get. SCHEMA: {"typeName":"Transform"} or {"typeName":"BoxCollider","index":0}
includeFieldsNoInclude serialized fields of the component.true
includePropertiesNoInclude serialized properties of the component.true
deepSerializationNoPerforms deep serialization including all nested objects. Otherwise, only serializes top-level members.false

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/butterlatte-zhang/unity-ai-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server