delete_snapshot
Remove unwanted develop snapshots from Lightroom Classic to manage photo editing history and optimize catalog organization by specifying snapshot IDs.
Instructions
Delete a develop snapshot by its ID.
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": {
"snapshot_id": "<snapshot_id>"
},
"name": "delete_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| snapshot_id | Yes | ||
| local_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The `delete_snapshot` tool handler, which validates the snapshot ID and calls the underlying `develop.delete_snapshot` Lightroom method.
async def delete_snapshot( snapshot_id: str, local_ids: list[int] | None = None, ) -> dict[str, Any]: """Delete a develop snapshot by its ID.""" if not snapshot_id: raise ValueError("snapshot_id is required") ids = validate_local_ids(local_ids) payload: dict[str, Any] = {"snapshot_id": snapshot_id} if ids: payload["local_ids"] = ids return await _call("develop.delete_snapshot", payload)