store_download
Download assets from the store for use in real-time 3D web applications, specifying ID, name, and licensing details for integration into PlayCanvas Editor projects.
Instructions
Download an asset from the store
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| license | Yes | ||
| name | Yes |
Implementation Reference
- src/tools/store.ts:57-59 (handler)The handler function for the 'store_download' MCP tool. It delegates the download by calling the WebSocket server method 'store:playcanvas:clone' with the provided id, name, and license.({ id, name, license }) => { return wss.call('store:playcanvas:clone', id, name, license); }
- src/tools/store.ts:47-56 (schema)Zod input schema defining parameters for the 'store_download' tool: id, name, and license object.{ // store: z.enum(['playcanvas', 'sketchfab']).optional(), id: z.string(), name: z.string(), license: z.object({ author: z.string(), authorUrl: z.string().url(), license: z.string() }) },
- src/tools/store.ts:44-60 (registration)Registration of the 'store_download' tool with MCP server, including name, description, schema, and handler.mcp.tool( 'store_download', 'Download an asset from the store', { // store: z.enum(['playcanvas', 'sketchfab']).optional(), id: z.string(), name: z.string(), license: z.object({ author: z.string(), authorUrl: z.string().url(), license: z.string() }) }, ({ id, name, license }) => { return wss.call('store:playcanvas:clone', id, name, license); } );