move_release_in_user_collection
Move a music release from one folder to another in your Discogs collection to reorganize your catalog.
Instructions
Move a release in a user's collection to another folder
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | ||
| folder_id | Yes | ||
| release_id | Yes | ||
| instance_id | Yes | ||
| destination_folder_id | Yes |
Implementation Reference
- src/tools/userCollection.ts:279-296 (handler)Defines the MCP tool 'move_release_in_user_collection' including its handler function that uses UserService to move the release.export const moveReleaseInUserCollectionTool: Tool< FastMCPSessionAuth, typeof UserCollectionMoveReleaseParamsSchema > = { name: 'move_release_in_user_collection', description: `Move a release in a user's collection to another folder`, parameters: UserCollectionMoveReleaseParamsSchema, execute: async (args) => { try { const userService = new UserService(); await userService.collection.moveRelease(args); return 'Release moved successfully'; } catch (error) { throw formatDiscogsError(error); } }, };
- src/types/user/collection.ts:157-160 (schema)Zod schema defining the input parameters for the move_release_in_user_collection tool, extending the deleted params with destination_folder_id.export const UserCollectionMoveReleaseParamsSchema = UserCollectionReleaseDeletedParamsSchema.extend({ destination_folder_id: z.number(), });
- src/tools/userCollection.ts:330-330 (registration)Registers the moveReleaseInUserCollectionTool with the FastMCP server.server.addTool(moveReleaseInUserCollectionTool);