remove_components
Delete specific components from an entity in the PlayCanvas Editor MCP Server, streamlining entity management for real-time 3D web applications.
Instructions
Remove components from an entity
Input Schema
Name | Required | Description | Default |
---|---|---|---|
components | Yes | Array of component names to remove from the entity. | |
id | Yes | An entity ID. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"components": {
"description": "Array of component names to remove from the entity.",
"items": {
"enum": [
"anim",
"animation",
"audiolistener",
"button",
"camera",
"collision",
"element",
"layoutchild",
"layoutgroup",
"light",
"model",
"particlesystem",
"render",
"rigidbody",
"screen",
"script",
"scrollbar",
"scrollview",
"sound",
"sprite"
],
"type": "string"
},
"minItems": 1,
"type": "array"
},
"id": {
"description": "An entity ID.",
"format": "uuid",
"type": "string"
}
},
"required": [
"id",
"components"
],
"type": "object"
}