get_camera_motions
Retrieve all supported camera motions for video creation. Utilize this tool to access camera movement options for enhancing Luma Dream Machine visuals via the mcp-luma-dream-machine server.
Instructions
Gets all supported camera motions
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/luma_ai_mcp_server/server.py:475-487 (handler)The async function that implements the core logic of the 'get_camera_motions' tool by making a GET request to the Luma API endpoint '/generations/camera_motion/list' and formatting the response.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)}"
- Pydantic model defining the input schema for the tool. It is empty as the tool requires no input parameters.class GetCameraMotionsInput(BaseModel): pass
- src/luma_ai_mcp_server/server.py:543-547 (registration)Registration of the tool in the list_tools() handler, specifying its 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)Dispatch logic in the call_tool() handler that routes calls to the 'get_camera_motions' function and formats the response.case LumaTools.GET_CAMERA_MOTIONS: result = await get_camera_motions(arguments) return [TextContent(type="text", text=result)]
- Enum constant defining the tool name string within the LumaTools enum.GET_CAMERA_MOTIONS = "get_camera_motions"