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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"keywords": "<keywords>"
},
"name": "remove_keywords"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keywords | Yes | ||
| local_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
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)