remove_keywords
Remove specified keywords from selected photos in Lightroom Classic to clean up metadata and organize your catalog more effectively.
Instructions
Remove keywords by name/path from selected photos or local_ids.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| local_ids | No |
Implementation Reference
- The 'remove_keywords' tool handler, which validates input keywords and calls the Lightroom bridge metadata.remove_keywords method.
async def remove_keywords(keywords: list[str], local_ids: list[int] | None = None) -> dict[str, Any]: """Remove keywords by name/path from selected photos or local_ids.""" if not keywords: raise ValueError("keywords cannot be empty") payload: dict[str, Any] = {"keywords": [str(k) for k in keywords]} ids = validate_local_ids(local_ids) if ids: payload["local_ids"] = ids return await _call("metadata.remove_keywords", payload)