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
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | The asset IDs of the template assets to instantiate |
Implementation Reference
- src/tools/asset.ts:53-62 (registration)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); } );
- src/tools/schema/common.ts:34-34 (schema)AssetIdSchema definition used for validating asset IDs in the tool's input.export const AssetIdSchema = z.number().int().nullable().describe('An asset ID.');