fx_create
Create or update custom Remotion animated effects in TSX when built-in components fall short. Returns a preview image so you can review the effect before using it as an overlay.
Instructions
Create or update a custom animated effect when the built-in components can't do what the user wants. Write a React component (TSX) for Remotion:
Only import from "react" and "remotion" (useCurrentFrame, useVideoConfig, interpolate, spring, Easing, AbsoluteFill, Sequence…). No network, no require.
export default function Fx(props) {...}; draw on a TRANSPARENT background; size everything relative to useVideoConfig().width/height.
props.brand has colors {text, highlight, emphasis, outline, box}; font families 'VS Heading', 'VS Body', 'VS Deva', 'VS Guru' are loaded. Returns a 4-frame preview image (or the build/render error to fix). Show the preview to the user before using it as overlay component "fx:".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"description": "<description>",
"code": "<code>"
},
"name": "fx_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| name | Yes | ||
| preview | No | ||
| brandKit | No | ||
| description | Yes | ||
| defaultProps | No | ||
| backgroundAsset | No | Show the preview over a frame of the user's video | |
| defaultDuration | No |