remotion_get_composition_info
Retrieve current video composition details including components, timeline, duration, and configuration for video editing and management.
Instructions
Get information about the current composition.
Returns details about the current composition including all components,
timeline, duration, and configuration.
Returns:
JSON with composition information
Example:
info = await remotion_get_composition_info()
# Returns composition details, components, timeline, etc.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/chuk_motion/server.py:316-339 (handler)The main handler function for the 'remotion_get_composition_info' tool. Decorated with @mcp.tool for registration. Returns JSON info about the current project composition using project_manager.get_project_info().@mcp.tool # type: ignore[arg-type] async def remotion_get_composition_info() -> str: """ Get information about the current composition. Returns details about the current composition including all components, timeline, duration, and configuration. Returns: JSON with composition information Example: info = await remotion_get_composition_info() # Returns composition details, components, timeline, etc. """ def _get(): if not project_manager.current_composition: return json.dumps({"error": "No active composition"}) return json.dumps(project_manager.get_project_info(), indent=2) return await asyncio.get_event_loop().run_in_executor(None, _get)