Skip to main content
Glama

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
NameRequiredDescriptionDefault
mask_idNo

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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/4xiomdev/lightroom-classic-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server