Skip to main content
Glama

create_ai_mask

Create AI-powered masks in Lightroom Classic to isolate subjects, skies, backgrounds, or other elements for precise photo editing adjustments.

Instructions

Create an AI-powered mask on the active photo.

mask_type: subject, sky, background, person, object, depth, luminance, color operation: new (default), add, subtract, intersect

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mask_typeYes
operationNonew

Implementation Reference

  • The handler for the create_ai_mask tool, which calls the underlying "masks.create_ai_mask" service.
    async def create_ai_mask(
        mask_type: str,
        operation: str = "new",
    ) -> dict[str, Any]:
        """Create an AI-powered mask on the active photo.
    
        mask_type: subject, sky, background, person, object, depth, luminance, color
        operation: new (default), add, subtract, intersect
        """
        if not mask_type:
            raise ValueError("mask_type is required")
        return await _call("masks.create_ai_mask", {
            "mask_type": mask_type,
            "operation": operation,
        })

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