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
| Name | Required | Description | Default |
|---|---|---|---|
| collection_id | Yes | ||
| local_ids | No |
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)