Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

modify_entities

Edit properties of one or more entities in real-time 3D web applications using dot notation for nested property paths, enabling precise adjustments within the PlayCanvas Editor environment.

Instructions

Modify one or more entity's properties

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
editsYesAn array of objects containing the ID of the entity to modify, the path to the property to modify, and the value to set the property to.

Implementation Reference

  • Handler function for the 'modify_entities' tool. It receives the 'edits' parameter and forwards it to the WebSocket server via wss.call('entities:modify', edits).
    ({ edits }) => { return wss.call('entities:modify', edits); }
  • Input schema for the 'modify_entities' tool, defining an array of edits with entity ID, property path, and new value.
    { edits: z.array(z.object({ id: EntityIdSchema, path: z.string().describe('The path to the property to modify. Use dot notation to access nested properties.'), value: z.any().describe('The value to set the property to.') })).nonempty().describe('An array of objects containing the ID of the entity to modify, the path to the property to modify, and the value to set the property to.') },
  • Registration of the 'modify_entities' tool using mcp.tool(), including name, description, input schema, and handler function.
    mcp.tool( 'modify_entities', 'Modify one or more entity\'s properties', { edits: z.array(z.object({ id: EntityIdSchema, path: z.string().describe('The path to the property to modify. Use dot notation to access nested properties.'), value: z.any().describe('The value to set the property to.') })).nonempty().describe('An array of objects containing the ID of the entity to modify, the path to the property to modify, and the value to set the property to.') }, ({ edits }) => { return wss.call('entities:modify', edits); } );

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/playcanvas/editor-mcp-server'

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