invert_mask
Reverse the selection of a mask in Lightroom Classic to edit different areas of a photo. Specify a mask ID or invert the active mask.
Instructions
Invert the active mask (or a specific mask by ID).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask_id | No |
Implementation Reference
- The handler implementation for the 'invert_mask' tool, which uses the '@mcp.tool()' decorator and calls 'masks.toggle_invert' via an internal '_call' method.
@mcp.tool() async def invert_mask(mask_id: int | None = None) -> dict[str, Any]: """Invert the active mask (or a specific mask by ID).""" payload: dict[str, Any] = {} if mask_id is not None: payload["mask_id"] = mask_id return await _call("masks.toggle_invert", payload)