rotate_right
Rotate selected photos 90 degrees clockwise in Lightroom Classic to correct orientation or adjust composition for editing workflows.
Instructions
Rotate selected photos 90 degrees right.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rotate_right"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler function 'rotate_right' which registers the tool and invokes the underlying Lightroom metadata call.
@mcp.tool() async def rotate_right(local_ids: list[int] | None = None) -> dict[str, Any]: """Rotate selected photos 90 degrees right.""" ids = validate_local_ids(local_ids) payload: dict[str, Any] = {} if ids: payload["local_ids"] = ids return await _call("metadata.rotate_right", payload)