gameobject-component-get
Retrieve detailed information about a specific component on a GameObject, including type, enabled state, and serialized fields or properties. Prepare 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gameObjectRef": "<gameObjectRef>",
"componentRef": "<componentRef>"
},
"name": "gameobject-component-get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gameObjectRef | Yes | Target GameObject. SCHEMA: {"name":"ObjectName"} or {"instanceID":12345} | |
| componentRef | Yes | Component to get. SCHEMA: {"typeName":"Transform"} or {"typeName":"BoxCollider","index":0} | |
| includeFields | No | Include serialized fields of the component. | true |
| includeProperties | No | Include serialized properties of the component. | true |
| deepSerialization | No | Performs deep serialization including all nested objects. Otherwise, only serializes top-level members. | false |