原始内容
name: batchedits-video-editor description: Autonomously edit videos, add captions, and remove silences via BatchEdits. metadata: openclaw: primaryEnv: BATCHEDITS_API_KEY requirements: mcp: - batchedits
Turn your OpenClaw into an autonomous video editor using BatchEdits. Use when you need to add captions, remove silences, or apply custom styles to videos. Covers creating styles, uploading local videos, processing, and checking video status directly from WhatsApp, Telegram, or the CLI.
Setup
- Create an account at your BatchEdits instance.
- Choose one connection method.
Option A: Easiest — API key in URL
openclaw config set mcp.servers.batchedits '{"type": "sse", "url": "https://batchedits.com/api/mcp/PASTE_YOUR_API_KEY_HERE"}'
Option B: Header-based
export BATCHEDITS_API_KEY="PASTE_YOUR_API_KEY_HERE"
openclaw config set mcp.servers.batchedits '{"type": "sse", "url": "https://batchedits.com/api/mcp"}'
Option C: OAuth DCR (Dynamic Client Registration)
CLIENT_RESPONSE=$(curl -sS -X POST https://batchedits.com/api/oauth/register \
-H 'Content-Type: application/json' \
-d '{"client_name":"OpenClaw Local","redirect_uris":["http://localhost/callback"]}')
CLIENT_ID=$(echo "$CLIENT_RESPONSE" | jq -r '.client_id')
CLIENT_SECRET=$(echo "$CLIENT_RESPONSE" | jq -r '.client_secret')
AUTH_URL="https://batchedits.com/api/oauth/authorize?client_id=$CLIENT_ID&redirect_uri=http://localhost/callback&response_type=code"
echo "Open this URL and approve:"
echo "$AUTH_URL"
# After approval, copy the ?code=... value:
CODE="PASTE_CODE_HERE"
TOKEN_RESPONSE=$(curl -sS -X POST https://batchedits.com/api/oauth/token \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d "grant_type=authorization_code&code=$CODE&client_id=$CLIENT_ID&client_secret=$CLIENT_SECRET&redirect_uri=http://localhost/callback")
ACCESS_TOKEN=$(echo "$TOKEN_RESPONSE" | jq -r '.access_token')
export BATCHEDITS_ACCESS_TOKEN="$ACCESS_TOKEN"
openclaw config set mcp.servers.batchedits '{"type": "sse", "url": "https://batchedits.com/api/mcp"}'
Tools
list_actionscreate_styleget_stylesupload_videosprocess_videolist_videosdownload_video
Recommended Workflow for Video Editing
- Identify the local video file provided by the user.
- Determine the requested edits.
- Connect using one of the setup options above.
- Check
get_stylesto see if a matching style already exists. If not, uselist_actionsandcreate_styleto make one. - Call
upload_videosto get the upload command. - Execute the upload command and extract the
videoId. - Call
process_videowithvideoIdandstyleId. - Call
list_videosto check when the video reachescompletedstatus. - Optionally call
download_videoto get the result.
Tips
- Always check
get_stylesfirst. Reusing existing styles is faster than creating a new one every time. - Uploading videos is handled via
curlbecause OpenClaw needs to stream large local binaries to the remote server efficiently. - You can queue multiple videos to the same style or apply different styles for bulk processing.