Express routes exposing media operations via MediaManager, handling binary availability.
// Source: https://github.com/agenticmail/agenticmail | License: MIT | Copyright 2026 Ope Olatunji
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Media routes — HTTP surface for the @agenticmail/core MediaManager.
*
* The MCP and OpenClaw `media_*` tools are thin clients of these
* routes, consistent with how the phone / sms / telegram surfaces are
* wired. Every operation is delegated to MediaManager, which drives
* external system binaries (ffmpeg, ffprobe, ImageMagick, whisper.cpp,
* Python) via execFile with argument arrays — never a shell.
*
* # Graceful degradation
*
* None of those binaries are bundled. MediaManager feature-detects the
* binary each operation needs and throws an actionable error ("ffmpeg
* is required … install it: …") when it is
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key