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
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | The asset IDs of the assets to delete |
Implementation Reference
- src/tools/asset.ts:42-51 (registration)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); } );
- src/tools/schema/common.ts:34-34 (schema)AssetIdSchema: Zod schema for asset ID (number, nullable), used in delete_assets input.export const AssetIdSchema = z.number().int().nullable().describe('An asset ID.');
- src/tools/asset.ts:48-50 (handler)Handler function for delete_assets tool, calls WSS to perform the deletion.({ ids }) => { return wss.call('assets:delete', ids); }