set_title
Update title metadata for selected photos in Lightroom Classic to organize and identify images efficiently.
Instructions
Set Lightroom title metadata for selected photos or local_ids.
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": {
"title": "<title>"
},
"name": "set_title"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| local_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function for the 'set_title' tool, which sets Lightroom title metadata.
@mcp.tool() async def set_title(title: str, local_ids: list[int] | None = None) -> dict[str, Any]: """Set Lightroom title metadata for selected photos or local_ids.""" payload: dict[str, Any] = {"title": str(title)} ids = validate_local_ids(local_ids) if ids: payload["local_ids"] = ids return await _call("metadata.set_title", payload)