Remove Overlay
remove_overlayRemoves a registered overlay from a Remotion composition and optionally deletes its component file; Root.tsx is regenerated so the overlay disappears from preview.
Instructions
Remove a registered overlay from the composition. Optionally delete the component file from disk. After removal, Root.tsx is regenerated without the overlay — it will disappear from the preview immediately.
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": {
"projectPath": "<projectPath>",
"overlayId": "<overlayId>"
},
"name": "remove_overlay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overlayId | Yes | ID of the overlay to remove | |
| deleteFile | No | If true, also deletes the component .tsx file from disk. Default false. | |
| projectPath | Yes |