Skip to main content
Glama

remove_from_collection

Remove selected photos from a Lightroom Classic collection to organize your catalog by deleting unwanted images from specific sets.

Instructions

Remove selected photos (or specific local_ids) from a collection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_idYes
local_idsNo

Implementation Reference

  • The handler function for the `remove_from_collection` MCP tool, which validates IDs and calls the internal `catalog.remove_from_collection` command.
    @mcp.tool()
    async def remove_from_collection(
        collection_id: int,
        local_ids: list[int] | None = None,
    ) -> dict[str, Any]:
        """Remove selected photos (or specific local_ids) from a collection."""
        ids = validate_local_ids(local_ids)
        payload: dict[str, Any] = {"collection_id": collection_id}
        if ids:
            payload["local_ids"] = ids
        return await _call("catalog.remove_from_collection", payload)

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/4xiomdev/lightroom-classic-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server