gameobject-component-get
GameObject / Component / Get
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.
Inputs
gameObjectRef— the host GameObject.componentRef— the specific component to inspect (matched by index or instance ID).includeFields(defaulttrue) — populate the legacyFieldslist.includeProperties(defaulttrue) — populate the legacyPropertieslist.deepSerialization(defaultfalse) — when populating legacy lists, recurse into nested members.
Path-scoped reads (token-saving)
Supply paths (a list of paths) to read only the listed fields/elements via Reflector.TryReadAt, or viewQuery (a ViewQuery) to navigate to a subtree and/or filter by name regex / max depth / type via Reflector.View. The result is returned in the View field of the response, and the legacy Fields/Properties lists are skipped. These two parameters are mutually exclusive — supply at most one.
Path syntax
fieldName, nested/field, arrayField/[i], dictField/[key]. Leading #/ is stripped.