FableCut 如何透過 JSON 時間軸、MCP 和 AI 智能體讓影片編輯器可程式化
Making a Video Editor Programmable: JSON Timelines, MCP, and AI Agents
FableCut 是一款開源瀏覽器影片編輯器,透過 project.json 結構化時間軸,並以 MCP 和 REST 介面讓 AI 智能體檢視及修改剪輯工程。
Making a Video Editor Programmable: JSON Timelines, MCP, and AI Agents
AI agents are getting better at working with code, APIs, and structured data. But creative applications introduce a different challenge: how do you let an agent make meaningful changes without restricting it to a collection of predefined prompts?
Video editing is an interesting example.
A traditional editing workflow revolves around a graphical timeline. You move clips, trim footage, adjust effects, synchronize audio, and arrange tracks. Automating these operations through mouse movements alone can be fragile.
An alternative is to make the editing project itself accessible to software.
That's the approach behind FableCut, an open-source browser-based video editor built around a structured project file.
1. Treat the timeline as data
FableCut represents an editing project through project.json.
The project contains the information needed to describe an edit, including clips, tracks, effects, transitions, and keyframes.
This creates a programmatic interface to the editing process. Instead of requiring an agent to manipulate every operation through the graphical interface, it can inspect and modify the project representation.
The basic workflow looks like this:
- Read the current project.
- Understand the timeline and the requested changes.
- Modify the relevant project data through the available tools.
- Let the editor reflect the changes.
- Review the result and make further adjustments.
The important idea is that the AI doesn't need its own separate video-editing engine. It works with the same project the editor uses.
Of course, this requires the model to understand the project structure and follow its constraints. Structured data makes automation possible, but it doesn't guarantee that every edit will be valid or aesthetically correct.
2. Connecting agents through MCP and REST
A structured project becomes considerably more useful when external tools can interact with it.
FableCut provides MCP and REST interfaces for controlling editing operations.
MCP allows compatible AI clients to discover and invoke available tools. The REST API provides another integration path for scripts, applications, and custom agents.
This makes the editor less dependent on any single model provider.
Depending on the client and configuration, an agent can inspect a project, examine footage, modify the timeline, or invoke editing operations without relying entirely on visual UI automation.
For example, a request such as "remove the long pauses and prepare a vertical version for Shorts" can be broken down into individual operations rather than treated as one opaque generation request.
3. What can an agent actually do?
The project includes tools for several common editing tasks:
- Silence detection and removal: Find quiet sections and cut unwanted pauses.
- Beat-based editing: Analyze music timing to help synchronize cuts.
- Smart reframing: Create vertical, square, or portrait versions while following the subject.
- Highlight extraction: Identify candidate moments in longer footage.
- Captions: Work with caption and transcription workflows.
- Audio and effects: Modify audio, effects, transitions, and other timeline elements.
- Reusable workflows: Save repeatable editing routines for future projects.
- Music search: Find openly licensed music and sound effects with licence information and attribution details.
These operations provide an agent with higher-level tools where appropriate, while the underlying project remains available for more granular editing.
That distinction is useful. A model shouldn't have to reconstruct a complex audio-analysis algorithm every time it needs to remove silence. It can invoke a dedicated operation and then inspect the result.
4. Live updates and human control
Automation becomes difficult to trust when changes happen somewhere the user cannot inspect.
FableCut uses a live-updating editor, so changes to the project can appear in the timeline as the agent works.
This creates a workflow in which the agent handles repetitive operations while the user retains control over the creative result.
For example, an agent might generate a first pass of a talking-head edit, remove pauses, add captions, and prepare a vertical version. The editor can then be used to correct timing, restore an intentional pause, adjust framing, or refine the pacing.
The goal isn't to make manual editing obsolete. It's to make the timeline accessible to both people and software.
5. Why model independence matters
When an application exposes a clear data format and tool interface, it becomes easier to experiment with different models.
FableCut can work with compatible MCP clients, including workflows involving hosted models and local LLMs.
The model doesn't need to be trained specifically for video editing, although its ability to understand the project format and use tools reliably will affect the results.
This also makes the architecture interesting beyond video. The same general pattern could apply to other creative applications:
- Represent the work as structured data.
- Expose meaningful operations through an API.
- Let an agent reason about the requested changes.
- Keep the result inspectable and editable in a native interface.
The hard part is defining a useful project schema and reliable operations, not simply connecting a language model to an application.
6. Running it locally
FableCut is open source under the MIT licence and has a zero-dependency core setup.
You can explore the project on GitHub:
- Repository: https://github.com/ronak-create/FableCut
- Browser editor: https://studio.fablecut.space/
The local version can be started with:
npx fablecut
The browser-based editing workflow keeps footage on the user's machine. However, if an external AI provider is connected, the project information sent to that provider depends on the integration and configuration.
7. What still needs to be solved?
Giving an AI agent access to a timeline is only the beginning.
There are several challenges worth considering:
Correctness: Agents can produce invalid project changes or misunderstand timing relationships.
Creative judgment: Removing silence is relatively straightforward compared with deciding whether a pause contributes to a scene.
Recovery: Undo, validation, and conflict handling become important when an agent modifies a project that a person may also be editing.
Evaluation: A successful API call doesn't necessarily mean the resulting video is good. Automated edits need to be judged by their actual output.
Tool design: Higher-level operations make common tasks easier, but overly restrictive tools can limit what a capable model can accomplish.
These are not problems that disappear simply by using a better model. They require careful application and tool design.
Conclusion
Making a video editor programmable changes how AI can participate in the editing process.
A structured timeline, a live interface, and standard integration mechanisms allow different agents to work with the same project without requiring a separate editing system for every model.
FableCut is one implementation of this idea, and the project is open for exploration and contributions.
The larger question is whether more creative software should expose its underlying projects and operations in ways that make them accessible to AI agents while keeping humans in control.
I'd be interested to hear how other developers are approaching this problem, particularly around project validation, agent reliability, and designing tools for creative workflows.
來源:DEV Community · dev.to