create_collection
Organize photos by creating new collections in Lightroom Classic, optionally grouping them within existing collection sets for better catalog management.
Instructions
Create a new collection (optionally inside a collection set).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| parent_id | No |
Implementation Reference
- The handler function for the `create_collection` tool, decorated with @mcp.tool().
@mcp.tool() async def create_collection(name: str, parent_id: int | None = None) -> dict[str, Any]: """Create a new collection (optionally inside a collection set).""" if not name: raise ValueError("name is required") payload: dict[str, Any] = {"name": name} if parent_id is not None: payload["parent_id"] = parent_id return await _call("catalog.create_collection", payload)