Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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
  • 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(), ),
  • 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"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bobtista/luma-ai-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server