Skip to main content
Glama

video_edit

Edit videos using JSON specifications to combine clips, audio, text, and transitions in a single operation.

Instructions

Execute a full timeline-based edit from a JSON specification.

The timeline JSON describes video clips, audio tracks, text overlays, transitions, and export settings in a single operation.

Example timeline: { "width": 1080, "height": 1920, "tracks": [ { "type": "video", "clips": [ {"source": "intro.mp4", "start": 0, "duration": 5}, {"source": "main.mp4", "start": 5, "trim_start": 10, "duration": 30} ], "transitions": [{"after_clip": 0, "type": "fade", "duration": 1.0}] }, { "type": "audio", "clips": [{"source": "music.mp3", "start": 0, "volume": 0.7}] }, { "type": "text", "elements": [{"text": "EPISODE 42", "start": 0, "duration": 3, "position": "top-center"}] } ], "export": {"format": "mp4", "quality": "high"} }

Args: timeline: JSON object describing the full edit timeline. output_path: Where to save the final video. Auto-generated if omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timelineYes
output_pathNo

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/Pastorsimon1798/mcp-video'

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