Skip to main content
Glama

set_caption

Add descriptive captions to selected photos in Lightroom Classic to organize and document your image collection.

Instructions

Set Lightroom caption metadata for selected photos or local_ids.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
captionYes
local_idsNo

Implementation Reference

  • The `set_caption` tool handler is decorated with `@mcp.tool()` and executes a call to the Lightroom metadata API via `_call("metadata.set_caption", payload)`.
    @mcp.tool()
    async def set_caption(caption: str, local_ids: list[int] | None = None) -> dict[str, Any]:
        """Set Lightroom caption metadata for selected photos or local_ids."""
        payload: dict[str, Any] = {"caption": str(caption)}
        ids = validate_local_ids(local_ids)
        if ids:
            payload["local_ids"] = ids
        return await _call("metadata.set_caption", 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