Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

delete_assets

Remove one or more assets from the PlayCanvas Editor by specifying their IDs. This tool helps manage and clean up resources in real-time 3D web applications efficiently.

Instructions

Delete one or more assets

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesThe asset IDs of the assets to delete

Implementation Reference

  • Registration of the MCP 'delete_assets' tool, including input schema and handler function that delegates to WSS.
    mcp.tool( 'delete_assets', 'Delete one or more assets', { ids: z.array(AssetIdSchema).nonempty().describe('The asset IDs of the assets to delete') }, ({ ids }) => { return wss.call('assets:delete', ids); } );
  • AssetIdSchema: Zod schema for asset ID (number, nullable), used in delete_assets input.
    export const AssetIdSchema = z.number().int().nullable().describe('An asset ID.');
  • Handler function for delete_assets tool, calls WSS to perform the deletion.
    ({ ids }) => { return wss.call('assets:delete', ids); }

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