rotate_left
Rotate selected photos 90 degrees counterclockwise in Adobe Lightroom Classic to correct orientation or adjust composition.
Instructions
Rotate selected photos 90 degrees left.
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_left"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler implementation for the 'rotate_left' tool. It includes the @mcp.tool() registration decorator and the logic that calls the underlying 'metadata.rotate_left' bridge function.
@mcp.tool() async def rotate_left(local_ids: list[int] | None = None) -> dict[str, Any]: """Rotate selected photos 90 degrees left.""" ids = validate_local_ids(local_ids) payload: dict[str, Any] = {} if ids: payload["local_ids"] = ids return await _call("metadata.rotate_left", payload)