Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

instantiate_template_assets

Generate 3D web application assets by instantiating template assets in the PlayCanvas Editor MCP Server.

Instructions

Instantiate one or more template assets

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesThe asset IDs of the template assets to instantiate

Implementation Reference

  • Registers the 'instantiate_template_assets' MCP tool, including input schema (array of AssetIdSchema) and handler that calls wss.call('assets:instantiate', ids).
    mcp.tool( 'instantiate_template_assets', 'Instantiate one or more template assets', { ids: z.array(AssetIdSchema).nonempty().describe('The asset IDs of the template assets to instantiate') }, ({ ids }) => { return wss.call('assets:instantiate', ids); } );
  • AssetIdSchema definition used for validating asset IDs in the tool's input.
    export const AssetIdSchema = z.number().int().nullable().describe('An asset ID.');

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