get_camera_motions
Retrieve available camera motion options for video generation using Luma Dream Machine to enhance visual storytelling and dynamic content creation.
Instructions
Gets all supported camera motions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/luma_ai_mcp_server/server.py:475-486 (handler)The handler function that makes an API request to list all supported camera motions and returns them as a comma-separated string.
async def get_camera_motions(parameters: dict) -> str: """Get all supported camera motions.""" try: result = await _make_luma_request("GET", "/generations/camera_motion/list") if not result: return "No camera motions available" return "Available camera motions:\n" + ", ".join(result) except Exception as e: logger.error(f"Error in get_camera_motions: {str(e)}", exc_info=True) return f"Error retrieving camera motions: {str(e)}" - Input schema for the tool, which requires no parameters.
class GetCameraMotionsInput(BaseModel): pass - src/luma_ai_mcp_server/server.py:543-547 (registration)Registration of the tool in the list_tools() function, including name, description, and input schema.
Tool( name=LumaTools.GET_CAMERA_MOTIONS, description="Gets all supported camera motions", inputSchema=GetCameraMotionsInput.model_json_schema(), ), - src/luma_ai_mcp_server/server.py:591-593 (registration)Dispatcher case in call_tool() that routes calls to the get_camera_motions handler.
case LumaTools.GET_CAMERA_MOTIONS: result = await get_camera_motions(arguments) return [TextContent(type="text", text=result)] - Enum constant defining the tool name in LumaTools.
GET_CAMERA_MOTIONS = "get_camera_motions"