Volver al catálogo

Kapwing MCP

kapwing_mcp

Upload media, create and export video projects, transcribe, translate, caption and dub, manage glossaries and voices, and run Kai, Kapwing's AI video agent, through Kapwing's hosted MCP server.

Acciones
55
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (55)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Add captionsKAPWING_MCP_ADD_CAPTIONSAcción

Turn subtitles on for one asset in a Kapwing project. Returns the project's `editorUrl` to view, edit, restyle, or export them. Needs a finished `start_transcription` for the asset, then this call with the transcript's `languageCode` (the code given to `start_transcription`, or the detected code `poll_transcription` reports when it was auto-detected). A transcript that is still running gets up to 30 seconds to finish before the call is refused. For translated captions, either run `start_transcription` with `translateLanguageCode` and pass the `translateLanguageCode` it returned here, or pass a finished translation job's `translationId` (translation tools, when enabled for you). A `translateLanguageCode` the asset has no transcript for is refused, since the project would show source-language words labelled as translated. This does not transcribe or translate anything, and it does not produce a downloadable file; the subtitles live on the project. Pass `styling` to change placement, size, colour, word-by-word animation, or the saved caption style (brand kit or built-in), or omit it to keep the current look. A project with no caption style yet starts in the workspace's default brand kit style when it has one. Fonts, outlines, highlight colours and bold come only with a saved caption style. Removing captions and any finer styling are done in the browser: send the user to `editorUrl`.

Parámetros de entrada

  • assetIdstringObligatorio

    Asset within that project to subtitle. It must already have a completed transcription — run `start_transcription` and `poll_transcription` on this same asset first.

  • stylingobject

    Optional appearance. Omit entirely to leave the project's existing look alone, or to take Studio's default on a project that has none; an empty object is rejected rather than treated as a no-op. Any field you set is applied over the project's current style, so setting only `fontSize` keeps the colour and placement someone already chose. Finer control than these four options is a browser job.

  • projectIdstringObligatorio

    Project the subtitles get attached to (mapped to `videoId` in the underlying schema). Get one from `create_project_from_asset` or `list_recent_projects`.

  • languageCodestringObligatorio

    Language spoken in the asset: the `languageCode` that `start_transcription` returned (or, after `auto-detect`, the one `poll_transcription` reported), since it selects which transcript the subtitles read from. The code you gave `start_transcription` also works. A mismatch is refused with the codes the asset has.

  • translationIdstring

    Optional. A finished `start_translation` job (`poll_translation` reported `done:true`; translation tools, when enabled for you). Its lines become the subtitles on the timings they were sent with. The target language comes from the job, so leave `translateLanguageCode` unset. This is the only way a translation job reaches a project.

  • translateLanguageCodestring

    Optional. Show subtitles from a translated transcript of this asset, made by `start_transcription` with this same `translateLanguageCode`. A `start_translation` job (translation tools, when enabled for you) is not a transcript; pass its id as `translationId` instead. Refused if the asset has no transcript in this language.

Parámetros de salida

Sin parámetros.

Add glossary termKAPWING_MCP_ADD_GLOSSARY_TERMAcción

Add one glossary override (sourceText → targetText) for a team/language-pair. Applied to future `start_translation` runs — the translator emits `targetText` verbatim wherever it sees `sourceText`. Use for brand names, proper nouns, or terms the model consistently mis-translates. No dedup — adding the same source text twice creates two rows.

Parámetros de entrada

  • teamIdstringObligatorio

    Team id the glossary entry belongs to. Applied automatically to future translations for this team.

  • sourceTextstringObligatorio

    The source-language text to override (case-sensitive).

  • targetTextstringObligatorio

    The target-language text the translator will produce.

  • sourceLanguageCodestringObligatorio

    Language the `sourceText` is written in, a `spoken` code from `list_languages`. A bare code that prefixes regional ones (`en`, `de`) applies the term to every regional source (`en-US`, `de-DE`); a regional one applies it to that region only.

  • targetLanguageCodestringObligatorio

    Language the `targetText` is written in, a `translation` code from `list_languages` (e.g. `es`, `pt-BR`), a romanized dubbing target (`hi-RM`), or `all` to apply the term to every target language.

Parámetros de salida

Sin parámetros.

Begin uploadKAPWING_MCP_BEGIN_UPLOADAcción

Start a chunked-upload session that the sidecar drives against GCS on your behalf. Upload paths at a glance (pick the smallest fit): Hosted URL, ≤500MB → upload_asset_from_url (Pro and up; server-side fetch) Local, up to ~1GB → create_upload_url → single HTTP PUT → register_asset_from_blob Local, up to 5GB, no HTTP → begin_upload → N × upload_chunk (isFinal) → register_asset_from_blob Local, caller can't read it → upload_asset_from_computer (browser panel; user picks file; up to 5GB) YouTube/social/Drive link → Kai, when its tool is listed (link in the prompt; Kai imports it) Egress: only `create_upload_url` (PUT to `storage.googleapis.com`) makes an outbound request of your own, so it is the only path ruled out when a request is refused for egress or sandbox reasons. Use `upload_asset_from_url` when the file is hosted. `begin_upload` needs no outbound request either, but its chunks are base64 you would have to emit yourself and that corrupts far below one chunk (sc-59914) — a scripted-caller path and not your fallback. If you write the tool arguments yourself and the network is refused, go to `upload_asset_from_computer`; the user can instead allow the domain in their sandbox's network egress settings and retry, if they would rather not re-pick the file. Follow up with N × `upload_chunk` and set `isFinal:true` on the last one — the sidecar finalizes and you then call `register_asset_from_blob` with the returned `assetId`. Use this when your MCP client can only make tool calls (no out-of-band HTTP). Prefer `create_upload_url` whenever you can make one outbound HTTP PUT — two MCP calls plus the PUT, instead of N chunk calls. Small totals do work here: GCS's 256KB rule binds only NON-final chunks, so a lone `isFinal:true` chunk may be any size. Chunks cross as base64 through MCP; suggested chunk size is 8MB. Returns `{uploadId, assetId, blobName, chunkSizeBytes, expiresAtMs}` — or, if a prior `assetId` you passed turns out to already have its bytes landed, `{assetId, blobName, alreadyUploaded:true}` with no `uploadId` (skip straight to registering). Session token embeds all resumption state and is portable across sidecar pods; expires after 1h. Refused before the session opens when the team's storage is full.

Parámetros de entrada

  • teamIdstringObligatorio

    Target team id — asset lands in this team's media library once the chunks finalize. Use `get_account` to list yours.

  • assetIdstring

    Resume a previous mint attempt that failed or expired before the chunks completed, instead of starting a new pending upload. Pass the `assetId` this tool returned the first time.

  • fileNamestringObligatorio

    Original file name (display + register step). Sanitized server-side into the canonical blob name.

  • sizeBytesinteger

    Optional pre-flight declared total size (bytes). If provided, rejected up front when above the 5GB cap or when it would not fit in the team's remaining storage. Also used to validate the final chunk's size and to compose the final chunk's Content-Range; when omitted, the final chunk's true end offset is used as the total instead.

  • contentTypestringObligatorio

    MIME type of the bytes to be uploaded (e.g. `video/mp4`). Same media allowlist as the other upload tools.

  • idempotencyKeystringuuid

    Stable UUID for this logical upload attempt. Generate it before the first call and resend it if that call's response is lost; this recovers the same pending asset instead of creating another one.

Parámetros de salida

Sin parámetros.

Create project from assetKAPWING_MCP_CREATE_PROJECT_FROM_ASSETAcción

Create a new Kapwing project from a single asset, or from several assets joined end to end in the order given. The returned `editorUrl` opens it in the browser for editing. This is the tool to reach for when the user says "make a project from this image/video/audio" after an upload, or "put these clips together" with no other edits. Pass `assetIds` for the multi-asset case. Returns `{projectId, editorUrl, folderId, folderUrl, thumbnailSeeded, hint}`; with no `workspaceId` the project goes in the main shared folder of the team (`folderUrl` says which). It creates the project only and renders nothing, so `download_export({projectId})` and `poll_export({projectId})` report no export until one runs. When a finished video file is what the user wanted, follow up with the dedicated export tool on the `projectId` this tool returns; it renders the project as it stands, including later edits, then poll `poll_export`. That tool is not enabled on every account; if it is not in your tool list, export from `editorUrl` in Studio instead. Exporting is always explicit, never a side effect of creating a project. Hand the user the `editorUrl` this returns, verbatim. Never build a project link yourself: the path is `/{projectId}/studio/editor`, not `/projects/{projectId}` and not `/videos/{projectId}`. `/videos/{projectId}` is the finished-video page, which shows the project's last export rather than the project, so subtitles and dubs are missing from it.

Parámetros de entrada

  • namestring

    Optional project name. Defaults to something derived from the asset.

  • teamIdstringObligatorio

    Team id the new project belongs to. Use `get_account` to list yours.

  • assetIdstring

    Asset id (from any upload tool, or from `list_media_library` called with this same `teamId`) to seed the new project with as its sole layer. An asset id belonging to another team is rejected. Pass this or `assetIds`.

  • assetIdsstring[]

    Several asset ids to join end to end into one project, in the order given (a montage). Same team rule as `assetId`. Pass this or `assetId`.

  • workspaceIdstring

    Optional folder id for the new project, from `list_folders` called with this same `teamId`. Leave it out unless the user named a folder: the project then goes in the team's main shared folder, or the caller's private folder if the team has no shared one. The response returns `folderUrl`. Never pass a teamId or a guessed id here.

Parámetros de salida

Sin parámetros.

Create pronunciationKAPWING_MCP_CREATE_PRONUNCIATIONAcción

Add one pronunciation override for a team. Once saved, `start_dubbing_tts` runs for this team will apply the override automatically to any occurrence of `sourceTerm`, in every language. Use for brand names that TTS mispronounces, foreign-language proper nouns, or acronyms. A word that already has an override is refused; see `list_pronunciations`.

Parámetros de entrada

  • formatstring

    Optional. Only `free_form` is accepted, which is also the default.

  • teamIdstringObligatorio

    Team id the pronunciation override belongs to. Applied automatically at `start_dubbing_tts` time for this team's dubs, in every language.

  • sourceTermstringObligatorio

    The single word to override, letters and numbers only (no spaces or punctuation). Matched as a whole word when the word and the term agree once either is put in Title Case, so `Kapwing` matches `kapwing` and `KAPWING`, but `LED` does not match `led`. Word edges are found the ASCII way, so a term that starts or ends with an accented or non-Latin letter is saved but never matched.

  • pronunciationstringObligatorio

    How the TTS engine should speak `sourceTerm`, as a plain phonetic respelling (e.g. `KAP-wing`). IPA is not supported.

Parámetros de salida

Sin parámetros.

Create upload urlKAPWING_MCP_CREATE_UPLOAD_URLAcción

Mint a GCS resumable-upload URL for a local file the caller will PUT themselves, then register with `register_asset_from_blob`. Your PUT goes to `storage.googleapis.com`. If your environment uses an egress allowlist, an agent proxy or a sandbox and you cannot confirm that host is allowed, do not spend a call here — go to `upload_asset_from_computer`, where the user's browser does the transfer. Being able to read the file is not evidence of egress. Upload paths at a glance (pick the smallest fit): Hosted URL, ≤500MB → upload_asset_from_url (Pro and up; server-side fetch) Local, up to ~1GB → create_upload_url → single HTTP PUT → register_asset_from_blob Local, up to 5GB, no HTTP → begin_upload → N × upload_chunk (isFinal) → register_asset_from_blob Local, caller can't read it → upload_asset_from_computer (browser panel; user picks file; up to 5GB) YouTube/social/Drive link → Kai, when its tool is listed (link in the prompt; Kai imports it) Egress: only `create_upload_url` (PUT to `storage.googleapis.com`) makes an outbound request of your own, so it is the only path ruled out when a request is refused for egress or sandbox reasons. Use `upload_asset_from_url` when the file is hosted. `begin_upload` needs no outbound request either, but its chunks are base64 you would have to emit yourself and that corrupts far below one chunk (sc-59914) — a scripted-caller path and not your fallback. If you write the tool arguments yourself and the network is refused, go to `upload_asset_from_computer`; the user can instead allow the domain in their sandbox's network egress settings and retry, if they would rather not re-pick the file. Sweet spot: local files up to ~1GB, when your client can do one HTTP PUT to an opaque URL. Beyond ~1GB or on flaky networks, prefer `begin_upload` (chunked, no HTTP needed) from a script, or `upload_asset_from_computer`. Returns `{uploadUrl, assetId, blobName, readUri, contentType}` — or, if a prior `assetId` you passed turns out to already have its bytes landed, `{assetId, blobName, alreadyUploaded:true, readUri}` with no `uploadUrl` (skip straight to registering). Two-step flow: (1) PUT the entire body to `uploadUrl` in one request; (2) call `register_asset_from_blob({assetId})` (or `{blobName, fileName, contentType, teamId}` for an older client) to attach it as a team asset. URL is single-use and expires — pass this call's `assetId` back in on a retry instead of starting a new pending upload. Refused before minting when the team's storage is full.

Parámetros de entrada

  • teamIdstringObligatorio

    Target team id — the asset will land in this team's media library when you follow up with `register_asset_from_blob`. Use `get_account` to list yours.

  • assetIdstring

    Resume a previous mint attempt that failed or expired before the PUT completed, instead of starting a new pending upload. Pass the `assetId` this tool returned the first time.

  • fileNamestringObligatorio

    Original file name. Used for the asset display name (also derived into the canonical storage blob name; sanitized server-side).

  • sizeBytesinteger

    Optional pre-flight declared size in bytes. If provided, rejected up front when above the 5GB cap or when it would not fit in the team's remaining storage, so a caller isn't handed a signed URL it can't fully upload to or register.

  • contentTypestringObligatorio

    MIME type of the bytes the caller intends to PUT (e.g. `video/mp4`, `image/png`, `audio/mpeg`). Enforced against the same allowlist as the other upload tools — video/*, audio/*, image/* other than SVG, application/pdf only, in lowercase.

  • idempotencyKeystringuuid

    Stable UUID for this logical upload attempt. Generate it before the first call and resend it if that call's response is lost; this recovers the same pending asset instead of creating another one.

Parámetros de salida

Sin parámetros.

Download exportKAPWING_MCP_DOWNLOAD_EXPORTAcción

Return the download URL for a Kapwing project's latest completed export. Read-only, URL-first framing. Pass `projectId` for a specific project, or omit it (passing `teamId` instead) to get the caller's most recent export across projects the caller created (creator-scoped, not team-wide — will not surface a coworker's export). For several or team-wide exports, use `list_workspace_exports`. If the project has no export yet, nothing has exported it — creating a project does not. Export it with the dedicated export tool on this `projectId`, which renders the project as it stands, or from Studio via its `editorUrl` if that tool is not in your list. `get_export_history` lists historical exports. For a status-first framing that also detects in-flight exports, use `poll_export`. Hand the user the `editorUrl` this returns, verbatim. Never build a project link yourself: the path is `/{projectId}/studio/editor`, not `/projects/{projectId}` and not `/videos/{projectId}`. `/videos/{projectId}` is the finished-video page, which shows the project's last export rather than the project, so subtitles and dubs are missing from it.

Parámetros de entrada

  • teamIdstring

    Workspace/team id — required only when `projectId` is omitted. The tool scans the caller's own recent projects in this team (creator-scoped, not team-wide) for the newest completed export. Get one from `get_account`.

  • projectIdstring

    Project/video id whose latest export URL to return. Get one from `list_recent_projects` (each project's `projectId`), or from a prior `create_project_from_asset` call. Omit to fetch the caller's most recent export across projects THEY created — `teamId` is required in that case.

Parámetros de salida

Sin parámetros.

Export projectKAPWING_MCP_EXPORT_PROJECTAcción

EXPORT an existing Kapwing project to MP4 and return a job to poll. Use this when the user wants a finished video file from a project that already exists — "export this project", "render it", "give me the MP4". Takes the `projectId` of a project you already have; it exports that project as it currently stands — including edits made in the browser and any captions added with the subtitle tools, with their styling and animation — and does NOT create a new one. Returns `{projectId, editorUrl, jobId, reusedExport, hint}`; the export runs asynchronously, so poll `poll_export({projectId})` until `ready === true` and then take the `url`. This spends real time and the account's export quota, so never call it speculatively, but a repeat call is safe: if the project has not changed since its last export through `export_project` and that export is still running or finished within the last 15 minutes, you get that same export back with `reusedExport: true` and nothing new is queued or billed. Any edit to the project queues a fresh export, and an export started from the editor is never handed back. Settings are fixed: MP4, source resolution, fast encode — there is nothing to configure. A project longer than the plan's per-export cap (4 minutes on Free, 2 hours on paid plans) is refused before anything is queued, with the cap and remedy in the error; so is a Free-plan export that would take the workspace past its 30 exported minutes for the month. A project with AI persona (lip-synced avatar) layers is refused, because its lip sync spends credits the user confirms in the editor: send them to `editorUrl` for that one. An audio-only project with no captions is refused too, since it would render as a blank frame; send them to `editorUrl` to export it as MP3. It is also not enabled on every account: if it is absent from your tool list, open `editorUrl` and export from the browser rather than substituting another tool.

Parámetros de entrada

  • projectIdstringObligatorio

    Project id to export. Get one from `list_recent_projects` (`projectId`), or from a project this session created.

Parámetros de salida

Sin parámetros.

Get accountKAPWING_MCP_GET_ACCOUNTAcción

Get the calling user's Kapwing account overview: their workspaces/teams with plan tier, member count, and the same-email-domain subset of members (so the caller can see their coworkers), plus the caller's own email. Each workspace also reports its plan state — credits and other allowances as used/limit/REMAINING, which allowances are depleted, storage used against the plan's cap, and the plan's export duration, watermark, and per-file upload limits. Call this to answer "how many credits do I have left?" and to check headroom BEFORE starting a transcription, dubbing, translation, or export, since those actions are not blocked with a legible reason when an allowance runs out. Read `notes` before reporting any of these numbers — it says which are enforced and which are plan policy only. Read-only. Members outside the caller's email domain are excluded — a personal-email member of a company workspace is not surfaced.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

Sin parámetros.

Get asset transcriptionKAPWING_MCP_GET_ASSET_TRANSCRIPTIONAcción

Fetch a completed transcription's words. Returns the full word list with per-word timestamps and speaker labels when available. Use the `assetTranscriptionId` returned by `poll_transcription` once `done:true` — not the transcription-job id. Word objects use snake_case `start_time` / `end_time`, matching the backend transcription shape so downstream per-word/per-chunk tooling can consume them without remapping. English transcripts include filler words (`um`, `uh`) unless `start_transcription` was called with `disfluencies:false`; the Studio strips them from subtitles at render time.

Parámetros de entrada

  • projectIdstring

    Optional project id — pass it if this transcription belongs to a specific project so the server scopes permission checks. Omit for asset-only reads.

  • assetTranscriptionIdstringObligatorio

    Asset-transcription id (from `poll_transcription` once `done:true` — the `assetTranscriptionId` field). NOT the transcription-job id you passed to `poll_transcription`.

Parámetros de salida

Sin parámetros.

Get dubbing voice clone by voice idKAPWING_MCP_GET_DUBBING_VOICE_CLONE_BY_VOICE_IDAcción

Look up a dubbing voice-clone record by its provider `voiceId`. Reverse of `list_dubbing_voice_clones` (which is by source asset). Returns `found:false` when the voiceId isn't tracked as a Kapwing dubbing clone — a stock provider voice would return `found:false`.

Parámetros de entrada

  • voiceIdstringObligatorio

    Provider-side voiceId (e.g. ElevenLabs voice id). Reverse-lookup: given a voiceId already in use, find the local clone record it belongs to.

Parámetros de salida

Sin parámetros.

Get export historyKAPWING_MCP_GET_EXPORT_HISTORYAcción

Per-project (not team-scoped): page through the export history for one Kapwing project — each export's status, format, resolution, timestamps and output URL. Read-only, cursor-paginated. Required arg is `projectId`, not `teamId`. Hand the user the `editorUrl` this returns, verbatim. Never build a project link yourself: the path is `/{projectId}/studio/editor`, not `/projects/{projectId}` and not `/videos/{projectId}`. `/videos/{projectId}` is the finished-video page, which shows the project's last export rather than the project, so subtitles and dubs are missing from it.

Parámetros de entrada

  • cursorstring

    Pagination cursor. Pass the `nextCursor` from a previous call to fetch the next page; omit for the first page.

  • pageSizeinteger

    Items per page (1–100). Defaults to 25 server-side.

  • projectIdstringObligatorio

    Project id to fetch export history for. Get one from `list_recent_projects` (each project's `projectId`) or from a `create_project_from_asset` call. Same id shape every other export tool uses.

Parámetros de salida

Sin parámetros.

Get export previewKAPWING_MCP_GET_EXPORT_PREVIEWAcción

Get preview details for a single Kapwing export — status, format, resolution, output URL, plus the owning team and whether the caller is a member. Read-only. Pass an `exportId` from get_export_history.

Parámetros de entrada

  • exportIdstringObligatorio

    Export id to preview. Get one from `get_export_history` or `list_workspace_exports` (each export's `exportId`).

Parámetros de salida

Sin parámetros.

Get glossary terms for pairKAPWING_MCP_GET_GLOSSARY_TERMS_FOR_PAIRAcción

Fetch the glossary terms that apply to one specific (source → target) language pair for a team, as a flat map of source text → target text. This is the exact map `start_translation` merges into the translation request. Empty map means no overrides for this pair.

Parámetros de entrada

  • teamIdstringObligatorio

    Team id whose glossary to filter.

  • sourceLanguageCodestringObligatorio

    Source language, a `spoken` code from `list_languages` (or a `translation` code for translated lines, `zh-TW`), resolved the same way `start_translation` resolves it. A regional code (`en-US`) also returns the terms saved under its bare parent (`en`).

  • targetLanguageCodestringObligatorio

    Target language, a `translation` code from `list_languages` (e.g. `es`), a romanized dubbing target (`hi-RM`), or `all` for the terms saved for every target.

Parámetros de salida

Sin parámetros.

Get panel uploadsKAPWING_MCP_GET_PANEL_UPLOADSAcción

Get the assetIds of files the user uploaded through the panel that `upload_asset_from_computer` opened. Pass that call's `panelSessionId`. Returns every finished pick (oldest first), each with `uploaded` (name, assetId, teamId), `refused` and `notUploaded` files, plus `uploadInProgress`. Waits up to `waitSeconds` for a pick to finish when none has or one is still uploading. Call it once the user says they have picked their files; if nothing has landed, ask them rather than calling it in a loop.

Parámetros de entrada

  • waitSecondsinteger

    How long to wait for a pick to finish when none has, or one is still uploading. Default 10, max 20; 0 answers at once.

  • panelSessionIdstringObligatorio

    The `panelSessionId` that `upload_asset_from_computer` returned.

Parámetros de salida

Sin parámetros.

Get project subtitlesKAPWING_MCP_GET_PROJECT_SUBTITLESAcción

Read a project's existing subtitles. Returns every asset on its timeline, which transcript each one's subtitles are reading from (`attachedTranscript`), every other transcript the asset already has, and the timed lines themselves. Read-only. This is how you translate or re-caption a project someone else built — the `lines` come back in exactly the shape the translation tools take, `linesLanguageCode` is the language they are written in, and the `assetTranscriptionId` it reports is the one `get_asset_transcription` wants, so neither needs a transcription job of your own. `linesSource` says what the lines are: `frames` is what the viewer sees now, `uploaded` is an SRT or an earlier translation, `transcript` means Studio has never cached lines for this project and these were built from the transcript the same way Studio would. An asset with `attachedTranscript: null` has no subtitles turned on yet; `attachedTranscript.status: "missing"` alongside a `translationId` means the lines came from a translation job rather than a transcript. Hand the user the `editorUrl` this returns, verbatim. Never build a project link yourself: the path is `/{projectId}/studio/editor`, not `/projects/{projectId}` and not `/videos/{projectId}`. `/videos/{projectId}` is the finished-video page, which shows the project's last export rather than the project, so subtitles and dubs are missing from it.

Parámetros de entrada

  • projectIdstringObligatorio

    Project to read (mapped to `videoId` in the underlying schema). Get one from `list_recent_projects` or `create_project_from_asset`.

  • includeLinesboolean

    Return each asset's subtitle lines (default true). Set false when you only need to know what is attached — the lines are most of the response's size.

Parámetros de salida

Sin parámetros.

Get team storage usageKAPWING_MCP_GET_TEAM_STORAGE_USAGEAcción

Report a Kapwing team's media-library storage: bytes used against the plan's storage cap and the room left, plus the media library's all-origins total. Read-only. Pass a `teamId` from the get_account tool. Two different byte counts come back — compare `usedAgainstLimitBytes` with `storageLimitBytes`, and never subtract `totalSizeBytes` (a wider set) from the cap. See `note`.

Parámetros de entrada

  • teamIdstringObligatorio

    Workspace/team id to report storage usage for. Get one from the `get_account` tool.

Parámetros de salida

Sin parámetros.

Get translationKAPWING_MCP_GET_TRANSLATIONAcción

Fetch a completed translation. Returns the translated subtitle lines aligned to the source timings, plus provider metadata. Provide `translationId` (preferred) OR `transcriptionId` (looks up the translation attached to that transcription). Passing neither is rejected client-side.

Parámetros de entrada

  • translationIdstring

    Translation id (from `start_translation` / `poll_translation`). Provide either this OR `transcriptionId`.

  • transcriptionIdstring

    Transcription id — looks up the translation attached to this transcription. Useful when a transcription started with `translateLanguageCode` set: `get_asset_transcription` reports `translationId` but you may only have the transcription id in hand. Provide either this OR `translationId`.

Parámetros de salida

Sin parámetros.

Kai runKAPWING_MCP_KAI_RUNAcción

Hand a generative or judgment-heavy request to Kai, Kapwing's AI video agent: new video, images, music, voice or sound, or edits where Kai chooses the clips and cuts. Kai saves the result as a project. When every step is an upload, export, transcription, translation, glossary term or caption change (styling included), use the plain tools, even for several steps. Put a YouTube, social or Drive link in `prompt`; if the other steps are plain, ask Kai only to import it, then use the `assetIds` from `kai_status` once ready. Upload local files and hosted media first; pass the assetIds. Kai can: Generate Images; Transform Images; Generate Video from Text or Reference Media; Generate Audio; Assemble Existing Media; Edit Media Content; Format a Project; Modify Project Layers; Coordinate the Agent Workflow. Waits up to 15s for Kai's plan and `creditCost`. While status is running, call `kai_status({chatId})` in this same turn until it is not. Give the user `chatUrl`. Kai spends the user's credits. When `kai_run` or `kai_status` reports awaiting_plan_confirmation or awaiting_credit_approval, show the user the plan and its `creditCost` exactly as returned and ask them. Pass their answer as `approve` with that plan's `approvalId`. Never approve on your own, and never approve anything the user has not seen. Modes: - Start: `teamId` and `prompt`, plus `assetIds` and a `requestId`. - Edit a project in place: also pass its `projectId`. - Answer or follow up: `chatId` and `prompt`, when status is awaiting_user_input, done or failed, or to change a plan before approving it. - Confirm or decline: `chatId`, `approve` and `approvalId`. Example prompts: - Make a video about a girl on the moon - Make a video about a girl on the moon, using this video as a reference - Combine these 5 videos together into a montage, trim the dead air, and add background music (pass all five assetIds, in order) - Remove the silences, and add yellow subtitles - Turn this product photo into a 9:16 ad with music and a caption

Parámetros de entrada

  • chatIdstring

    The run to answer or follow up. Omit to start a new run.

  • promptstring

    The user's request in their own words, or their answer to Kai's question.

  • teamIdstring

    Team the run belongs to. Required to start a run, and ignored with `chatId`. Use `get_account` to list yours.

  • approveboolean

    The user's answer to a pending plan or credit request: true to go ahead, false to decline. Only ever the user's own answer.

  • assetIdsstring[]

    Uploaded assets Kai should work from, in the order the user gave them. Goes with a prompt.

  • projectIdstring

    An existing project in `teamId` for Kai to edit in place, instead of saving a new one. Only when starting a run; follow-ups on that chat keep editing it. Trims, property and subtitle-style edits, and media or text Kai adds apply in place. A cut applies in place only on its own: a run that also adds media or text or edits other layers saves a new project. Removing layers, replacing media, adding or regenerating subtitles, or changing the canvas size or other project settings also saves a new project, and `kai_status` returns a `projectWarning` saying so; the original is unchanged.

  • requestIdstring

    Optional idempotency key for a start. Repeating it within ten minutes returns the first run instead of starting another. A repeat that arrives while the first is still starting gets a 409: call again with the same requestId a few seconds later.

  • approvalIdstring

    The `approvalId` that `kai_status` returned with the plan or credit request the user answered. Required with `approve`, so the answer lands only on what they saw. A 409 saying the request changed means the plan or cost moved since the user saw it: call `kai_status` and ask again. A 403 naming the agent approval limit means the user must approve it themselves at `chatUrl`.

Parámetros de salida

Sin parámetros.

Kai statusKAPWING_MCP_KAI_STATUSAcción

Check a Kai run that `kai_run` started. Returns `status`, one of running, awaiting_plan_confirmation, awaiting_credit_approval, awaiting_user_input, done or failed, with `pollAfterSeconds` (null once the run is over or waiting on the user) and `chatUrl`. A running run is re-read for up to 15 seconds, so the call returns as soon as it changes; call again while it is still running. A running run with `stage` saving_project has finished and is saving its project: keep polling. Awaiting states carry the `plan`, `creditCost` and `approvalId`, or the `question` and `options`, for you to show the user before answering through `kai_run`. Never answer a plan or credit request yourself. On done it returns `summary`, the generated `assetIds`, and `projectId` with `editorUrl` for the saved project, `projectWarning` when that project is missing outputs, is one of several Kai made, or could not be saved, and `creditsSpent`. For a run started with `projectId`, done applies Kai's edit to that project and returns `projectEdit`: applied; unchanged when the run finished without editing the project, so any edit `summary` describes did not happen; or conflict when the project changed in Studio meanwhile, in which case nothing was overwritten and the edit was not applied. When the edit cannot be applied in place, there is no `projectEdit`: the result is saved as a new project, or not at all if the user lost access to the project, and `projectWarning` says which. On failed it returns a short `reason`. Hand the user the `editorUrl` this returns, verbatim. Never build a project link yourself: the path is `/{projectId}/studio/editor`, not `/projects/{projectId}` and not `/videos/{projectId}`. `/videos/{projectId}` is the finished-video page, which shows the project's last export rather than the project, so subtitles and dubs are missing from it.

Parámetros de entrada

  • chatIdstringObligatorio

    The `chatId` that `kai_run` returned.

Parámetros de salida

Sin parámetros.

List brandkit voice clonesKAPWING_MCP_LIST_BRANDKIT_VOICE_CLONESAcción

List the team's saved brand-kit voice clones — team-level presets a caller can plug into `start_dubbing_tts` chunks via `elevenLabsId`. Distinct from `list_dubbing_voice_clones`, which is scoped to one source asset's speaker-derived clones. Response includes a signed `sampleURL` for playing back the training sample (may be omitted if no sample was retained).

Parámetros de entrada

  • teamIdstringObligatorio

    Team id whose saved voice clones to list. These are team-level (not per-source-asset like `list_dubbing_voice_clones`) — the label-and-voiceId pool available to any dubbing job for this team.

Parámetros de salida

Sin parámetros.

List dubbing tts cacheKAPWING_MCP_LIST_DUBBING_TTS_CACHEAcción

Fetch the cached TTS records for a set of ids. Each record carries a signed `outputAssetUrl` to play or download the generated audio (it expires; call again for a fresh one), the audio's `outputAssetId`, and `outputTranscriptionId` (transcription of the generated audio, useful for timing checks). The URL here is the way to reach the audio: `outputAssetId` is minted outside team storage, so `poll_asset` and the project tools refuse it. Batched: pass all ids from `poll_dubbing_tts`'s completed response in one call. Order of returned items is not guaranteed to match input order — join on `ttsCacheId`. Pass the `teamId` the dub ran under.

Parámetros de entrada

  • teamIdstringObligatorio

    Team id the dub ran under — the same `teamId` you passed to `start_dubbing_tts`. Required: the read is authorized against it, so the caller must hold Read on that team and every record's source asset must be visible to it.

  • ttsCacheIdsstring[]Obligatorio

    Cache ids to fetch — typically the `ttsCacheIds` array from a completed `poll_dubbing_tts` response. Each id maps 1:1 to a generated TTS chunk.

Parámetros de salida

Sin parámetros.

List dubbing voice clonesKAPWING_MCP_LIST_DUBBING_VOICE_CLONESAcción

List the trained voice clones attached to one source asset. Each entry pairs a speaker label with the provider `voiceId` you feed into `start_dubbing_tts` chunks. If the same speaker has multiple entries, prefer the most recent (higher `lastUsed`).

Parámetros de entrada

  • assetIdstringObligatorio

    The source asset id the clones were trained from (`originalDubbedAssetId` in the DB). Pass the same `assetId` you gave `start_dubbing_voice_cloning`.

Parámetros de salida

Sin parámetros.

List foldersKAPWING_MCP_LIST_FOLDERSAcción

List the folders in a Kapwing workspace/team (folder id, name, type, parent). Read-only. Pass a `teamId` from `get_account`. Use `parentFolderId` (or `"root"`) to walk one level at a time; use `limit` to cap the response. Unfiltered team trees can be hundreds of folders.

Parámetros de entrada

  • limitinteger

    Max folders to return (1–500). Defaults to 50. The underlying backend returns the whole tree in one shot, so this trims client-side.

  • teamIdstringObligatorio

    Workspace/team id whose folders to list. Get one from the `get_account` tool. Required — omitting a team is a write path server-side (it can auto-provision a team), so this tool always scopes to an existing team.

  • parentFolderIdstring

    Return only direct children of this folder id. Pass the literal string `"root"` for top-level (unparented) folders. Omit to fetch the whole tree (bounded by `limit`).

Parámetros de salida

Sin parámetros.

List glossary termsKAPWING_MCP_LIST_GLOSSARY_TERMSAcción

List all glossary terms saved for one team. Glossary terms are source→target text overrides the translation pipeline uses to force specific translations (e.g. brand names, proper nouns). Returned as an array; group by (sourceLanguageCode, targetLanguageCode) client-side to filter for a specific language pair. For a single language pair, use `get_glossary_terms_for_pair` instead.

Parámetros de entrada

  • teamIdstringObligatorio

    Team id whose glossary to fetch. Glossary terms are applied automatically by `start_translation` (and by transcription→translation flows) — this tool lets you inspect what's in effect for a team.

Parámetros de salida

Sin parámetros.

List languagesKAPWING_MCP_LIST_LANGUAGESAcción

List the language codes Kapwing accepts, per purpose: `spoken` (the language of audio or source text), `translation` (translation targets) and `dubbing` (dubbing targets). Each entry is a `code` and an English `name`. Codes differ by purpose: German is `de-DE` when spoken but `de` as a translation target. Language fields also accept a name or a differently cased code and resolve it, so this list is for choosing a language, not for formatting one.

Parámetros de entrada

  • purposestringenum

    Return only this list. Omit for all three.

    spokentranslationdubbing

Parámetros de salida

Sin parámetros.

List media libraryKAPWING_MCP_LIST_MEDIA_LIBRARYAcción

Page through a Kapwing workspace's media library — the team's uploads and AI generations (filename, type, dimensions, duration, size, AI-generated flag). Read-only, cursor-paginated: pass the returned `nextCursor` to walk all items. Pass a `teamId` from `get_account`; every `assetId` returned is one the team-scoped tools accept for that same team, so carry the `teamId` straight through to your next call (unless the envelope carries `assetIdsUnverified`, which means that check could not run — see its note). `search` is a tokenized full-text match, not a substring filter — see its arg description before relying on it to narrow results. Brand kit assets are not listed here, so an id for one has to come from elsewhere. Rate limited to 60 calls/minute per authenticated caller, inside a 300 calls/minute account-wide ceiling shared by every Kapwing tool except chunk uploads (a transport with no caller identity, the same one that sets `assetIdsUnverified`, has nothing to bucket against and is not limited): pass `pageSize: 100` when walking a whole library, since the server default of 25 makes a large library run out of budget before it runs out of pages.

Parámetros de entrada

  • cursorstring

    Pagination cursor. Pass the `nextCursor` from a previous call to fetch the next page; omit for the first page. The cursor is opaque and scoped to the exact `search` it was issued under — re-send that identical `search` alongside it. Pass a cursor with a different or absent `search` and the backend silently restarts at page 1, which reads as an endless first page rather than an error.

  • searchstring

    Optional filename search. NOT a substring match — the backend runs a full-text (Atlas Search `text`) query over `file_name`, `media_type` and `origin`, so the term is tokenized and matched with OR semantics. Practical consequences: a hyphenated or dotted query BROADENS rather than narrows (`b3-put` matches everything matching `b3` OR `put`, so it returns more rows than `put` alone), a bare type word like `video` or `audio` matches every asset of that type regardless of filename, and near-miss filenames come back. Prefer a single whole token, and treat every row as a candidate to re-check against `name` yourself rather than an exact hit.

  • teamIdstringObligatorio

    Workspace/team id whose media library to list. Get one from `get_account`. Required — every asset id this tool returns is usable with this same `teamId` on the tools that consume asset ids, and an asset id from one team is rejected by another.

  • pageSizeinteger

    Items per page (1–100). Defaults to 25 server-side.

Parámetros de salida

Sin parámetros.

List pronunciationsKAPWING_MCP_LIST_PRONUNCIATIONSAcción

List all pronunciation overrides for a team. Each entry pairs a `sourceTerm` (the raw word) with a `pronunciation` (either an IPA string or a plain phonetic respelling — the `format` field says which). The TTS pipeline for dubbing consults this list per team before speaking, so a brand name written unusually can be forced to sound right without editing the source transcript.

Parámetros de entrada

  • teamIdstringObligatorio

    Team id whose pronunciation overrides to fetch. Applied automatically at `start_dubbing_tts` time — this tool lets you inspect what's in effect.

Parámetros de salida

Sin parámetros.

List recent projectsKAPWING_MCP_LIST_RECENT_PROJECTSAcción

List the calling user's most recent Kapwing projects (name, duration, last editor, last-saved, thumbnail, share code) and their most recent Kai chats. Read-only. Default scope is `personal` (only projects the caller created). Pass `scope: "team"` to fan out to the whole team surface — that view includes coworkers' projects and thumbnails, so use it only when the caller explicitly wants the team view. Pass a `teamId` from the get_account tool. When you show these to a user, include each project's `lastSaved` date: "recent" here means recent for the workspace, not recent in time, and the list routinely reaches back months. Without dates, an old project by a since-departed teammate reads as current activity — a real report from release review, 2026-08-06. Hand the user the `editorUrl` this returns, verbatim. Never build a project link yourself: the path is `/{projectId}/studio/editor`, not `/projects/{projectId}` and not `/videos/{projectId}`. `/videos/{projectId}` is the finished-video page, which shows the project's last export rather than the project, so subtitles and dubs are missing from it.

Parámetros de entrada

  • scopestringenum

    `personal` (default) returns only projects the calling user created — the safe answer to "give me my recent projects". `team` returns the whole team surface (may include coworkers' projects and thumbnails); use this only when the caller explicitly wants the team view. Kai chats are always personal — the backend filters chats by userId regardless of scope.

    personalteam
  • teamIdstringObligatorio

    Workspace/team id to list recents for. Get one from the `get_account` tool (each team's `teamId`).

Parámetros de salida

Sin parámetros.

List stock voicesKAPWING_MCP_LIST_STOCK_VOICESAcción

List Kapwing's stock text-to-speech voices for a dubbing language: the only non-cloned voice ids `start_dubbing_tts` and `start_dubbing` accept. Any other provider voice id, including public ElevenLabs library ids, is refused. Each entry has `voiceId`, a display `name`, `provider` (pass it as `ttsProvider` where a tool asks), `premium`, and optional `gender`, `age`, `accent`, `useCase` and `description` to help choose. `premium:true` voices (ElevenLabs) need a Pro plan or higher. On a Free plan use a GOOGLE voice (`premium:false`) where the language has one; many languages have none, and then only the cloned voice works on Free. Cloned voices are not listed here: use `list_brandkit_voice_clones` or `list_dubbing_voice_clones`.

Parámetros de entrada

  • providerstringenum

    Return only this engine's voices. Omit for both.

    ELEVENLABSGOOGLE
  • languageCodestringObligatorio

    Dubbing target to list voices for, a `dubbing` code from `list_languages`.

Parámetros de salida

Sin parámetros.

List workspace exportsKAPWING_MCP_LIST_WORKSPACE_EXPORTSAcción

List the most recent completed exports across a whole Kapwing workspace, newest first, each with its download `url`. Use this for "download my last 10 exports", "the 50 most recent exports" or "every export in this workspace". Read-only, cursor-paginated. Pass `teamId`. Team-wide by default: it includes coworkers' exports from projects in shared folders, never from a coworker's private folder; pass `scope: "personal"` for only the caller's own projects. For "all", pass `limit: 50` and follow `nextCursor` until `hasNextPage` is false; a page can come back shorter than `limit`, so never treat a short or empty page as the end, and tell the user roughly how many there are (`total`) before fetching every page — it is counted on the first page, so projects added, moved or deleted mid-listing can make the pages add up to a slightly different number. If `projectsTruncated` is true, the workspace has more projects than this listing covers, so tell the user exports of older projects are missing. This returns links, not files: hand the user the `url` values or download them yourself if you can. Links are time-limited: if one has expired, call again for a fresh one; if a fresh link still fails, the file is gone, so say so instead of retrying. For one project's history use `get_export_history`; for a single latest export use `download_export`. Hand the user the `editorUrl` this returns, verbatim. Never build a project link yourself: the path is `/{projectId}/studio/editor`, not `/projects/{projectId}` and not `/videos/{projectId}`. `/videos/{projectId}` is the finished-video page, which shows the project's last export rather than the project, so subtitles and dubs are missing from it.

Parámetros de entrada

  • limitinteger

    How many exports to return, newest first (1–50, default 10). For more than 50, or for "all", keep calling with `nextCursor` until `hasNextPage` is false.

  • scopestringenum

    Whose exports. "team" (default) covers projects in the workspace's shared folders, including coworkers' projects, plus the caller's own private folders; a private folder someone else shared with the caller is not included. "personal" covers only projects the caller created.

    teampersonal
  • cursorstring

    Pagination cursor. Pass the `nextCursor` from a previous call to fetch the next page; omit for the first page.

  • teamIdstringObligatorio

    Workspace/team id whose exports to list. Get one from `get_account`.

Parámetros de salida

Sin parámetros.

PingKAPWING_MCP_PINGAcción

Smoke test that the MCP server can reach the configured Kapwing backend. Calls a trivial GET endpoint and returns the parsed body.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

Sin parámetros.

Poll assetKAPWING_MCP_POLL_ASSETAcción

Poll an asset's ingest status. Its companion is URL ingest, which returns before the server-side download finishes — call this in an out-of-process loop (once every few seconds) until `ready === true`. Returns `status` mapped to a string (`pending` / `uploading` / `uploaded` / `failed` / `queued`) plus a `ready` boolean and, when available, the signed URL, content type, name, and duration. An upload that completed synchronously already returns `ready:true` on the first call. Once the media has been probed, usually within a minute of `ready:true`, `dimensions` appears for images and video and `durationSeconds` for audio and video; a PDF gets neither. This tool only reads, so it never starts that probe; the tools that need the metadata start it themselves when it is missing.

Parámetros de entrada

  • assetIdstringObligatorio

    Asset id to check. Any upload tool returns one — URL ingest hands it back immediately with the asset still pending, the inline-bytes path hands back one already uploaded.

Parámetros de salida

Sin parámetros.

Poll brandkit voice cloningKAPWING_MCP_POLL_BRANDKIT_VOICE_CLONINGAcción

Poll a brand-kit voice-cloning job's status. On `status:'complete'` the trained ElevenLabs `voiceId` is populated — feed it into `start_dubbing_tts` chunks, or into any other tool that takes an ElevenLabs voiceId. Persisting it as a named team preset is done from the Kapwing web UI and is intentionally not on the MCP surface. On `status:'error'`, `error` carries the failure details.

Parámetros de entrada

  • jobIdstringObligatorio

    Brandkit voice-cloning job id returned by `start_brandkit_voice_cloning`.

Parámetros de salida

Sin parámetros.

Poll dubbingKAPWING_MCP_POLL_DUBBINGAcción

Poll dubbing started by `start_dubbing`. Returns one entry per workflow with `status`, `done`, `failed` and the current stage (and `failureReason` when the backend stopped it for a known cause, such as no speech in the video), plus `projectIdByLanguage` / `editorUrlByLanguage` once known, and `dubbedAudioAssets` / `backgroundAudioAssetId` once the audio has rendered. `done:true` on every entry means the dubbed audio has been laid onto the project's timeline, so the editorUrl is worth opening and an export of that project will carry the dub. Dubbing runs a transcribe, translate, voice-clone, TTS and audio-render chain, so expect minutes — poll every 15-30 seconds rather than tightly.

Parámetros de entrada

  • projectIdstringObligatorio

    The projectId you passed to `start_dubbing`. Required — the backend picks each workflow's playback stage by project, so a different id silently reports no playback progress.

  • workflowIdsstring[]Obligatorio

    Workflow ids from `start_dubbing`. Pass the same list back every poll.

Parámetros de salida

Sin parámetros.

Poll dubbing ttsKAPWING_MCP_POLL_DUBBING_TTSAcción

Poll a dubbing TTS job. `status:'complete'` populates `ttsCacheIds` — pass those directly to `list_dubbing_tts_cache({ttsCacheIds})` for the generated audio URLs. `status:'error'` puts details in `error`. `status:'pending'` means poll again. A complete job means the audio was generated, NOT that the project was dubbed: the dub is a standalone audio asset and nothing is written to the project. `projectId` / `editorUrl` name the source project, which still plays its original audio.

Parámetros de entrada

  • jobIdstringObligatorio

    Dubbing TTS job id returned by `start_dubbing_tts`.

Parámetros de salida

Sin parámetros.

Poll dubbing voice cloningKAPWING_MCP_POLL_DUBBING_VOICE_CLONINGAcción

Poll a voice-cloning job's status. `status:'complete'` means the clones are trained and the speaker→voiceId map is in `speakerVoiceCloneIds`; persist it with `save_dubbing_voice_clones({assetId, teamId, speakerVoiceCloneIds})` — `list_dubbing_voice_clones({assetId})` reads only what that save writes, so it stays empty until then — or feed the voiceIds straight into `start_dubbing_tts` chunks. `status:'error'` puts the failure in `error` — retry with adjusted time ranges. `status:'pending'` means poll again.

Parámetros de entrada

  • jobIdstringObligatorio

    Voice-cloning job id returned by `start_dubbing_voice_cloning`.

Parámetros de salida

Sin parámetros.

Poll exportKAPWING_MCP_POLL_EXPORTAcción

Poll a project's export status. Companion to the dedicated export tool — call in an out-of-process loop until `ready === true`. Returns `status`: `processing` (export in flight), `done` (completed export available, `url` set), or `none` (nothing running and no completed export yet). An export sits in `processing` until the ks-jobs worker finishes. A project that has never been exported answers `none` — creating a project does not export one, and polling never starts an export. Use `download_export` for a strictly URL-first read. Hand the user the `editorUrl` this returns, verbatim. Never build a project link yourself: the path is `/{projectId}/studio/editor`, not `/projects/{projectId}` and not `/videos/{projectId}`. `/videos/{projectId}` is the finished-video page, which shows the project's last export rather than the project, so subtitles and dubs are missing from it.

Parámetros de entrada

  • projectIdstringObligatorio

    Project/video id whose export to poll. Get one from `list_recent_projects` (`projectId`) or from a `create_project_from_asset` call.

Parámetros de salida

Sin parámetros.

Poll transcriptionKAPWING_MCP_POLL_TRANSCRIPTIONAcción

Poll a transcription's progress. Returns `done:true` once the transcription is finished — `assetTranscriptionId` is then populated (unless `noTranscript:true`) and you should hand it to `get_asset_transcription` to fetch the actual words. While pending, `progress` reports which stages have completed (downloaded → extracted → conformed → speech → done). If `progress.error` is set the job failed and further polling won't help. `noTranscript:true` (with `done:true`) means the job ended without running on the audio, so there is no transcript to fetch or translate. If `stalled:true` the job has gone too long without progress: stop polling and ask the user before starting a new transcription, since a new job is charged transcription credits again.

Parámetros de entrada

  • projectIdstring

    Optional project id — if this transcription belongs to a specific project, pass it so the server can scope permission checks. Omit for asset-only transcriptions.

  • transcriptionIdstringObligatorio

    Transcription id returned by `start_transcription`. Same value goes back in every poll call until `done:true`.

Parámetros de salida

Sin parámetros.

Poll translate textKAPWING_MCP_POLL_TRANSLATE_TEXTAcción

Poll a translate-text job's status and, if complete, its translated chunks. Poll this after `start_translate_text` until `status:'complete'` — each entry in `translations` pairs the original `text` with `translatedText`. On `status:'error'`, `error` carries the failure details. On `status:'pending'`, poll again in a few seconds.

Parámetros de entrada

  • translateTextJobIdstringObligatorio

    Translate-text job id returned by `start_translate_text`. Poll this until `status:'complete'`; the translated chunks then live in `translations`.

Parámetros de salida

Sin parámetros.

Poll translationKAPWING_MCP_POLL_TRANSLATIONAcción

Poll a translation job's progress. Returns `done:true` once the translated subtitles are ready — at that point call `get_translation({translationId})` for the aligned output (or read the `subtitles` array directly off this response, which the backend also includes when done). `progress` is a fraction 0..1 while running.

Parámetros de entrada

  • projectIdstring

    Optional project id. Pass it when this work belongs to a project — the response then carries an `editorUrl` you can give the user to see and edit the result. Omit for asset-only work.

  • translationIdstringObligatorio

    Translation id returned by `start_translation`. Same value goes back in every poll call until `done:true`.

Parámetros de salida

Sin parámetros.

Register asset from blobKAPWING_MCP_REGISTER_ASSET_FROM_BLOBAcción

Register a GCS blob (previously uploaded via `create_upload_url` or a completed `upload_chunk` chain) as a Kapwing team asset. Final step for the self-upload paths. Upload paths at a glance (pick the smallest fit): Hosted URL, ≤500MB → upload_asset_from_url (Pro and up; server-side fetch) Local, up to ~1GB → create_upload_url → single HTTP PUT → register_asset_from_blob Local, up to 5GB, no HTTP → begin_upload → N × upload_chunk (isFinal) → register_asset_from_blob Local, caller can't read it → upload_asset_from_computer (browser panel; user picks file; up to 5GB) YouTube/social/Drive link → Kai, when its tool is listed (link in the prompt; Kai imports it) Egress: only `create_upload_url` (PUT to `storage.googleapis.com`) makes an outbound request of your own, so it is the only path ruled out when a request is refused for egress or sandbox reasons. Use `upload_asset_from_url` when the file is hosted. `begin_upload` needs no outbound request either, but its chunks are base64 you would have to emit yourself and that corrupts far below one chunk (sc-59914) — a scripted-caller path and not your fallback. If you write the tool arguments yourself and the network is refused, go to `upload_asset_from_computer`; the user can instead allow the domain in their sandbox's network egress settings and retry, if they would rather not re-pick the file. Returns `{assetId, teamAssetId, status, ...}` — same shape as `upload_asset_from_url`. On this path the blob is already in GCS so the returned status is typically `uploaded` (settled) on the first call. If it isn't, poll with `poll_asset({assetId})` until `ready:true`. Prefer `{assetId}` — the id a mint tool returned. `{blobName}` alone also still works, for compatibility with an older mint result. A rejection that cannot be retried (e.g. the file was too large for the team's plan) is a structured MCP error containing `{assetId, permanentlyFailed:true, error}` — do not retry with this assetId; start a new upload instead.

Parámetros de entrada

  • teamIdstring

    Target team id. Only used — and required — when registering a legacy `source/mcp-uploads/...` blobName; the canonical path already knows the team from mint time.

  • assetIdstring

    Asset id returned by a mint tool's `assetId` field (preferred — `create_upload_url` / `begin_upload` + `upload_chunk` / `upload_asset_from_bytes`'s retry assetId). Finalizes the upload those tools started.

  • blobNamestring

    Legacy alternative to `assetId`, for an older mint result that only carried a GCS blob name. Either a canonical `source/assets/{assetId}/...` blob (resolved to the same asset as passing `assetId` directly) or a pre-migration `source/mcp-uploads/...` blob (registered via the original link-based flow). Provide `assetId` instead when you have it.

  • fileNamestring

    Display name for the resulting asset. Only used — and required — when registering a legacy `source/mcp-uploads/...` blobName; ignored otherwise (the canonical path already has a name from mint time).

  • contentTypestring

    MIME type of the uploaded bytes. Only used — and required — when registering a legacy `source/mcp-uploads/...` blobName; the canonical path reads the real, GCS-verified content type instead of trusting this.

Parámetros de salida

Sin parámetros.

Rename projectKAPWING_MCP_RENAME_PROJECTAcción

Rename a Kapwing project. Changes only the project's name, nothing on its timeline, and needs edit access to the project. Returns `previousName`, so a wrong rename can be undone by renaming back when it is non-empty. An editor tab that already has the project open picks up the new name live. Hand the user the `editorUrl` this returns, verbatim. Never build a project link yourself: the path is `/{projectId}/studio/editor`, not `/projects/{projectId}` and not `/videos/{projectId}`. `/videos/{projectId}` is the finished-video page, which shows the project's last export rather than the project, so subtitles and dubs are missing from it.

Parámetros de entrada

  • namestringObligatorio

    New project name, as it should appear in the workspace and the editor (1-200 characters, surrounding whitespace trimmed).

  • projectIdstringObligatorio

    Project to rename. Get one from `list_recent_projects`, or from the `projectId` a create or export tool returned.

Parámetros de salida

Sin parámetros.

Report upload panel pickKAPWING_MCP_REPORT_UPLOAD_PANEL_PICKAcción

Called by the Kapwing upload panel itself to record what one pick of files uploaded. Agents never call this — read the results with `get_panel_uploads`.

Parámetros de entrada

  • pickIdstringObligatorio

    The panel's id for this pick.

  • statusstringObligatorioenum

    `uploading` when the pick starts, `finished` once every file in it has settled.

    uploadingfinished
  • refusedobject[]
  • uploadedobject[]
  • notUploadedobject[]
  • panelSessionIdstringObligatoriouuid

    The `panelSessionId` from `upload_asset_from_computer`.

Parámetros de salida

Sin parámetros.

Save dubbing voice clonesKAPWING_MCP_SAVE_DUBBING_VOICE_CLONESAcción

Persist a speaker→voiceId mapping for one source asset. Writes one `dubbing_voice_clones` row per entry, all with `provider:'elevenlabs'`. Not idempotent — repeat calls with the same map insert duplicates (the read side prefers the most recent). Empty map is a no-op. Response carries no body; success = no exception.

Parámetros de entrada

  • teamIdstringObligatorio

    Team id the caller belongs to. Required for MCP auth — the server rejects an aud=mcp bearer that doesn't belong to this team. Session-token callers ignore it; MCP callers must supply it.

  • assetIdstringObligatorio

    Source asset id (same one passed to `start_dubbing_voice_cloning` — becomes `originalDubbedAssetId` on the DB record).

  • speakerVoiceCloneIdsobjectObligatorio

    Map of speaker label → chosen `voiceId` for that speaker. Persisted with `provider:'elevenlabs'`. Empty map is a no-op (server returns without writing).

Parámetros de salida

Sin parámetros.

Start brandkit voice cloningKAPWING_MCP_START_BRANDKIT_VOICE_CLONINGAcción

Start a brand-kit voice-cloning job. Consumes one clone against the team's plan-tier max-clones quota. Rate-limited to 2 calls per minute — training runs are expensive and the quota is only enforced against clones already saved from the web UI. Returns the job — poll `poll_brandkit_voice_cloning({jobId})` until `status:'complete'` to get the ElevenLabs voiceId. This differs from `start_dubbing_voice_cloning` in two ways: (a) it's team-level (a preset voice, not per-source-asset) and (b) it takes full assets (no time-range slicing per speaker). Only clone or reproduce voices the user owns or has permission to use.

Parámetros de entrada

  • teamIdstringObligatorio

    Team the resulting brand-kit voice clone will belong to. The team's plan tier enforces a max-clone quota; the backend rejects the start if you're over.

  • assetIdsstring[]Obligatorio

    One or more asset ids whose audio ElevenLabs will train the voice clone on. Get these from `upload_asset_from_url` etc. Longer clean samples produce better clones — combine multiple assets when you have several short samples of the same speaker.

Parámetros de salida

Sin parámetros.

Start dubbingKAPWING_MCP_START_DUBBINGAcción

Dub a project's audio into one or more languages, end to end, and leave the result on the project's timeline. This is the dubbing tool to reach for: it runs the whole pipeline (transcribe, translate, clone the speakers' voices, synthesize speech, split the original vocals out, lay the new audio onto the timeline) and the finished dub is playable in the editor. Take the source `languageCode` from the user or the audio, never from what is on screen: burned-in subtitles, captions and titles are often in a different language from the speech. If the user did not name the spoken language, pass `auto-detect` and the transcribe stage detects it from the audio. The detected code is not returned here, so if a later step needs the spoken language, ask the user rather than reading it off the frames. Do not call a dub unnecessary because the frames already read in the target language. Returns one `workflowId` per source asset plus `projectIdByLanguage`; poll with `poll_dubbing({workflowIds, projectId})` until `done:true`. For a single target language the dub replaces the audio on the project you passed. For several, the backend copies the project once per language and `projectIdByLanguage` names each copy — the project you passed is left alone. The `start_dubbing_voice_cloning` / `start_dubbing_tts` tools are the individual stages of this same pipeline, exposed for callers that need to drive one step by hand; they do NOT attach anything to a project, so use them only when this tool does not fit. Dubbing is audio-only: mouth movement is not re-timed, so the result is not lip-synced. Only clone or reproduce voices the user owns or has permission to use.

Parámetros de entrada

  • teamIdstringObligatorio

    Team billed for dubbing credits. Use `get_account` to list yours.

  • assetIdstringObligatorio

    Source asset to dub. Must already be `ready:true` with audio — check with `poll_asset`.

  • voiceIdstring

    Voice to speak the dub. Defaults to `clone-original-voice`, which clones each speaker off the source audio so the dub keeps their voice. Pass a brand-kit voice id from `list_brandkit_voice_clones` to use a saved preset, or a stock voice from `list_stock_voices` for the target language (a Google voice takes a single target). Any other id is refused.

  • projectIdstringObligatorio

    Project the asset sits in. For a single target language the dub lands on THIS project; for several the backend copies it per language and returns the copies in `projectIdByLanguage`.

  • timeRangesobject[]

    Portions of the source asset actually used on the project's timeline, in seconds. THIS DRIVES BILLING — credits are charged for the summed length, not the asset's full length; overlapping ranges are merged and ranges are clamped to the asset's length first. Omit only when the project uses the whole asset once (what `create_project_from_asset` builds); for a trimmed or multi-clip timeline pass the real ranges or the team is overcharged.

  • ttsProviderstringenum

    TTS engine. Defaults to the voice's own engine: ELEVENLABS for the cloning default and brand-kit voices, GOOGLE for a Google stock voice. Must match the voice: a stock GOOGLE voice id with ELEVENLABS (or the reverse) fails in the TTS stage. A free team may only use ELEVENLABS with the default cloning voice.

    ELEVENLABSGOOGLE
  • languageCodestringObligatorio

    SOURCE language spoken in the asset, a `spoken` code from `list_languages` (e.g. `en-US`). A bare code takes the language's home region (`de` becomes `de-DE`). Pass `auto-detect` to let the transcribe stage find it; a clip with no detectable speech then fails as `no_verbal_audio_in_video`.

  • translateLanguageCodesstring[]Obligatorio

    Languages to dub INTO, each a `dubbing` code from `list_languages` and each at most once. Several in one call is supported and is cheaper than repeating the call, since credits are charged once for the source duration times the language count. A language whose `cloneVoice` is false cannot use the cloned voice: dub it alone, with a stock Google voice and `ttsProvider: GOOGLE`. A bare code with several regional targets is refused with them named (`pt` names `pt-BR` and `pt-PT`). As in Studio, `en` is English (India) and `es` is Spanish (Latin America).

Parámetros de salida

Sin parámetros.

Start dubbing ttsKAPWING_MCP_START_DUBBING_TTSAcción

Advanced / single-stage. Prefer `start_dubbing`, which runs this stage inside the full pipeline and leaves a playable dub on the project timeline. Start a text-to-speech pass over translated word chunks to generate a dub. Returns the AI job — poll `poll_dubbing_tts({jobId})` until `status:'complete'`, then fetch the generated audio via `list_dubbing_tts_cache({ttsCacheIds})` using the ids on the completed job. Consumes team credits per character spoken. The dub is delivered as standalone audio assets: nothing is added to the project, and `projectId` / `editorUrl` here name the project the dub was generated FROM, not a dubbed version of it. Opening that project shows the original, unchanged. Tell the user the dub is an audio file to download, and do not describe the project as dubbed. Only clone or reproduce voices the user owns or has permission to use.

Parámetros de entrada

  • chunksobject[]Obligatorio

    Ordered chunks to speak. Each chunk carries its own voiceId (so multi-speaker dubs work) plus the source+translated words. Split by speaker turn — one chunk per speaker segment produces the cleanest output.

  • teamIdstringObligatorio

    Team id billed for TTS credits. Required — the backend calls `getTeamOrFail(teamId)` and throws immediately without it (server/helpers/teams/getTeam.ts:44).

  • assetIdstringObligatorio

    Source asset id being dubbed (audio/video). Get one from `upload_asset_from_url` etc.

  • projectIdstringObligatorio

    Project id this dub belongs to (mapped to `videoId` in the underlying schema).

  • languageCodestringObligatorio

    TARGET language the dub is being generated in, a `dubbing` code from `list_languages`.

Parámetros de salida

Sin parámetros.

Start dubbing voice cloningKAPWING_MCP_START_DUBBING_VOICE_CLONINGAcción

Advanced / single-stage. Prefer `start_dubbing`, which runs this stage as part of the full pipeline and leaves a playable dub on the project; this tool trains voice clones only and attaches nothing. Start a voice-cloning job that trains a per-speaker voice clone from segments of a source asset. Returns the job. Reuse behavior: a COMPLETED job on the same asset whose speaker labels all still have live voice ids is returned as-is — the match is asset + speaker labels, NOT the ranges, so re-running with different ranges for the same labels reuses the old clones instead of retraining (use new speaker labels to force a retrain); an IN-PROGRESS job matches on assetId ONLY — starting a new clone with different ranges while another one is running on the same asset returns the in-flight job, not a new one. Poll with `poll_dubbing_voice_cloning({jobId})` until `status:'complete'`; that response (and the reuse response here) carries the speaker→voiceId map in `speakerVoiceCloneIds`. Persist it with `save_dubbing_voice_clones` and feed those voiceIds into `start_dubbing_tts` chunks. `list_dubbing_voice_clones` reads what the save writes, so it stays empty until then. Only clone or reproduce voices the user owns or has permission to use.

Parámetros de entrada

  • teamIdstringObligatorio

    Team id billed for voice-cloning credits. Required for MCP auth — the server rejects an aud=mcp bearer that doesn't belong to this team, and rejects the call outright when it's missing. Session-token callers ignore it; MCP callers must supply it.

  • assetIdstringObligatorio

    Source asset id whose audio will be sampled to clone voices. Get one from `upload_asset_from_url` etc. — the asset should already be `ready:true` with `hasAudio:true`.

  • projectIdstringObligatorio

    Project id this cloning attaches to (same value as videoId in the underlying schema — MCP surface uses `projectId` for consistency with the export tools).

  • timeRangesBySpeakerobjectObligatorio

    Map of speaker label → time ranges in the source audio to sample for that speaker's clone. Speaker labels typically come from a diarized transcription (`get_asset_transcription` returns per-word `speaker` labels; group contiguous words per speaker to build ranges). ElevenLabs uses these ranges to train a voice clone per speaker. Provide at least one range per speaker.

Parámetros de salida

Sin parámetros.

Start transcriptionKAPWING_MCP_START_TRANSCRIPTIONAcción

Start a transcription job for one asset. The spoken language may be given as `languageCode` or left for the pipeline to detect. Returns a `transcriptionId` immediately — the actual transcription runs in the background. Poll with `poll_transcription({transcriptionId})` until `done:true`, then fetch the words with `get_asset_transcription({assetTranscriptionId})`. If `translateLanguageCode` is set, `sourceTranscriptionId` is also returned for the untranslated source transcription. Consumes transcription credits from the caller's team. For a translation or dub, check the target with `list_languages` before calling this, or before asking for an upload: an unsupported target is refused only at the translation or dubbing step, after these credits are spent.

Parámetros de entrada

  • teamIdstringObligatorio

    Team id that will be billed for transcription credits. Use `get_account` to list yours.

  • assetIdstringObligatorio

    Asset id to transcribe. Get one from `upload_asset_from_url` / `upload_asset_from_computer` / `list_media_library`. The asset must be `ready:true` — call `poll_asset` first.

  • projectIdstring

    Optional project id. Pass it when this work belongs to a project — the response then carries an `editorUrl` you can give the user to see and edit the result. Omit for asset-only work.

  • disfluenciesboolean

    Capture filler words (`um`, `uh`, false starts) in the transcript. Defaults to on for English and off for other languages and for auto-detect, matching the Studio — the editor strips them from subtitles but needs them captured for its remove-filler-words feature to work.

  • languageCodestring

    Language SPOKEN in the audio, a `spoken` code from `list_languages` (e.g. `en-US`, `de-DE`, `ja-JP`). Case is fixed, an English name works, and a bare code takes the language's home region (`de` becomes `de-DE`). Omit it, or pass `auto-detect`, to let the transcriber find it. `poll_transcription` then reports the detected code. Not the translation target, which is `translateLanguageCode`.

  • speakerCountinteger

    Hint for diarization: expected number of distinct speakers. Some providers use this to improve speaker labels; safe to omit.

  • translateLanguageCodestring

    Optional target language for a translated transcription, a `translation` code from `list_languages`. When set, the pipeline emits BOTH the source-language transcription (via `source_language_transcription_id`) and the translated one (`transcription_id`). Refused when it is the spoken language. Omit for source-language-only.

Parámetros de salida

Sin parámetros.

Start translate textKAPWING_MCP_START_TRANSLATE_TEXTAcción

Translate plain-text chunks (no subtitle-frame identifiers) into a target language via the AI-jobs pipeline. Returns a `translateTextJobId` immediately — poll with `poll_translate_text({translateTextJobId})` until `status:'complete'`. For timed subtitle lines with frame ids, use `start_translation` instead (that path polls via `poll_translation`). Consumes translation credits.

Parámetros de entrada

  • chunksobject[]Obligatorio

    Text chunks to translate. Prefer several small chunks (with optional `previousText`/`nextText` context) over one giant chunk — the AI job splits work by chunk anyway.

  • teamIdstringObligatorio

    Team id that will be billed for translation credits. Use `get_account` to list yours.

  • featurestringObligatorioenum

    What this translation is for. `subtitles` for standalone caption translation, `dubbing` / `dubbingReview` for translation feeding the dubbing pipeline. All three consume translation credits.

    dubbingdubbingReviewsubtitles
  • languageCodestringObligatorio

    SOURCE language, a `spoken` code from `list_languages`, or a `translation` code for text that was translated before (`zh-TW`).

  • translateLanguageCodestringObligatorio

    TARGET language: a `translation` code from `list_languages` for `subtitles`, or a `dubbing` code for `dubbing` / `dubbingReview`. A code only the other list has (`hi-RM` for `subtitles`, a bare `fr` for `dubbing`) is refused before any credits are spent. Refused when it is the source language.

Parámetros de salida

Sin parámetros.

Start translationKAPWING_MCP_START_TRANSLATIONAcción

Translate a batch of timed subtitle lines. Returns a `translationId` immediately — the job runs in the background. Poll `poll_translation({translationId})` until `done:true`, then fetch the aligned translation with `get_translation({translationId})`. The job is not attached to any project. To show its lines as captions, pass the finished `translationId` to the captioning tool. For source→target on plain text without timings, use `start_translate_text` instead. Consumes translation credits from the caller's team; the team's glossary (if any) is applied automatically.

Parámetros de entrada

  • teamIdstringObligatorio

    Team id that will be billed for translation credits. Use `get_account` to list yours.

  • projectIdstring

    Optional project id. Pass it when this work belongs to a project — the response then carries an `editorUrl` you can give the user to see and edit the result. Omit for asset-only work.

  • subtitlesobject[]Obligatorio

    The subtitle lines to translate. Preserve timings — the translated output is meant to slot back into the same timeline. For raw text (no timings) use `start_translate_text` instead.

  • languageCodestringObligatorio

    SOURCE language the subtitles are written in, a `spoken` code from `list_languages` (e.g. `en-US`), or a `translation` code for lines that were translated before (`zh-TW`). Case is fixed and an English name works. A regional code also applies the glossary terms saved under its bare parent (`en-US` reads `en` terms).

  • translateLanguageCodestringObligatorio

    TARGET language, a `translation` code from `list_languages` (e.g. `es`, `fr`, `pt-BR`). A regional code maps to the plain one where only that is offered (`de-DE` becomes `de`). Refused when it is the source language.

Parámetros de salida

Sin parámetros.

Upload asset from computerKAPWING_MCP_UPLOAD_ASSET_FROM_COMPUTERAcción

Open an interactive upload panel so the user can pick media off their own computer and upload it into a Kapwing team library. Reach for a byte path first when you can read the file AND you know your outbound HTTP is unrestricted. Come here when you cannot read the bytes at all, and when the network is refused and you are the one writing the arguments. In a sandbox or behind an egress allowlist or agent proxy, come straight here instead of spending a call to find out — `create_upload_url` PUTs to `storage.googleapis.com`. Being able to read an attached file is not evidence of egress: in some clients the bytes are readable and the network is not. Upload paths at a glance (pick the smallest fit): Hosted URL, ≤500MB → upload_asset_from_url (Pro and up; server-side fetch) Local, up to ~1GB → create_upload_url → single HTTP PUT → register_asset_from_blob Local, up to 5GB, no HTTP → begin_upload → N × upload_chunk (isFinal) → register_asset_from_blob Local, caller can't read it → upload_asset_from_computer (browser panel; user picks file; up to 5GB) YouTube/social/Drive link → Kai, when its tool is listed (link in the prompt; Kai imports it) Egress: only `create_upload_url` (PUT to `storage.googleapis.com`) makes an outbound request of your own, so it is the only path ruled out when a request is refused for egress or sandbox reasons. Use `upload_asset_from_url` when the file is hosted. `begin_upload` needs no outbound request either, but its chunks are base64 you would have to emit yourself and that corrupts far below one chunk (sc-59914) — a scripted-caller path and not your fallback. If you write the tool arguments yourself and the network is refused, go to `upload_asset_from_computer`; the user can instead allow the domain in their sandbox's network egress settings and retry, if they would rather not re-pick the file. Use this when the user points at a file only THEY can reach ("these photos", "the video on my desktop") and you cannot read its bytes — it is the ONLY upload path that works in that case. The user's browser uploads directly to storage, so file size is bounded by their connection rather than by anything on your side, and no base64 passes through the conversation. Returns team scope for the panel and a `panelSessionId`; once the user says they have picked their files, call `get_panel_uploads` with it for the assetIds, so you can hand the user the asset or feed it to whichever project tool you have. Do not ask the user to hand over a file you have already uploaded successfully — being asked to re-pick clips they had just attached is a real report from release review, 2026-08-06, and it reads as the tool being broken. Uploads land in ONE workspace and the user should know which. Pass `teamId` when you already know the target; omit it and a single-workspace user resolves automatically. If they have several and you did not pass one, this call comes back with the list — ask the user which workspace, then call again with their answer. The result then carries `teamName`: say it back to the user, since the panel is the last chance to catch a wrong destination before their files are in it. The exception is `workspaceVerified:false`, which means the workspace lookup was unreachable and the id went unchecked — there is no name to give in that case, so say the destination could not be confirmed instead of naming one. A workspace whose storage is full is refused here, before the panel opens. Requires a host supporting the MCP Apps extension (Claude Desktop, claude.ai). On hosts without it, fall back to `upload_asset_from_url` for hosted media (Pro and up), or `create_upload_url` if you can make an outbound HTTP PUT.

Parámetros de entrada

  • teamIdstring

    Target team id — uploads from the panel land in this team's media library. Validated against the caller's own workspaces before the panel opens, so a guessed id is refused up front rather than after the user has picked files. Omit it when the user has only one workspace and it will resolve on its own; with more than one, omitting it comes back with the list so you can ask which. Passing a known id also keeps the call working when the workspace lookup is briefly unavailable — there is nothing to fall back on without one.

Parámetros de salida

Sin parámetros.

Upload asset from urlKAPWING_MCP_UPLOAD_ASSET_FROM_URLAcción

Import media into the caller's Kapwing team library from a URL. Upload paths at a glance (pick the smallest fit): Hosted URL, ≤500MB → upload_asset_from_url (Pro and up; server-side fetch) Local, up to ~1GB → create_upload_url → single HTTP PUT → register_asset_from_blob Local, up to 5GB, no HTTP → begin_upload → N × upload_chunk (isFinal) → register_asset_from_blob Local, caller can't read it → upload_asset_from_computer (browser panel; user picks file; up to 5GB) YouTube/social/Drive link → Kai, when its tool is listed (link in the prompt; Kai imports it) Egress: only `create_upload_url` (PUT to `storage.googleapis.com`) makes an outbound request of your own, so it is the only path ruled out when a request is refused for egress or sandbox reasons. Use `upload_asset_from_url` when the file is hosted. `begin_upload` needs no outbound request either, but its chunks are base64 you would have to emit yourself and that corrupts far below one chunk (sc-59914) — a scripted-caller path and not your fallback. If you write the tool arguments yourself and the network is refused, go to `upload_asset_from_computer`; the user can instead allow the domain in their sandbox's network egress settings and retry, if they would rather not re-pick the file. Server downloads the bytes; returns an asset id immediately — the background download continues out of process, so the asset may still be `pending`. Poll `poll_asset({assetId})` until `ready:true` before assuming the URL resolves. Use for direct media URLs or signed URLs from an external DAM. Social/video platform pages (YouTube, TikTok, Instagram, X, Vimeo, Facebook) and Google Drive share links are rejected here: if a Kai tool is listed, put the link in its prompt and Kai imports it. Refused before the fetch starts when the team's storage is full or the probed size would not fit. URL import needs a Pro or higher workspace: on Free it is refused, so use `upload_asset_from_computer` there instead.

Parámetros de entrada

  • urlstringObligatoriouri

    URL of the media to import. Kapwing server fetches it — supports direct media URLs (MP4, MP3, JPG, PNG, etc.) and any signed URL a DAM's API hands out. YouTube, TikTok, Instagram, X, Vimeo, Facebook, and Google Drive share links are rejected: pass those to Kai in its prompt when a Kai tool is listed.

  • teamIdstringObligatorio

    Target team id — the asset lands in this team's media library as a team asset. Use `get_account` to list yours.

  • fileNamestring

    Optional display name for the asset. Defaults to the file name at the end of the URL path (e.g. `mov_bbb.mp4`) when there is one.

Parámetros de salida

Sin parámetros.

Upload chunkKAPWING_MCP_UPLOAD_CHUNKAcción

Push one chunk of a session started by `begin_upload`. Upload paths at a glance (pick the smallest fit): Hosted URL, ≤500MB → upload_asset_from_url (Pro and up; server-side fetch) Local, up to ~1GB → create_upload_url → single HTTP PUT → register_asset_from_blob Local, up to 5GB, no HTTP → begin_upload → N × upload_chunk (isFinal) → register_asset_from_blob Local, caller can't read it → upload_asset_from_computer (browser panel; user picks file; up to 5GB) YouTube/social/Drive link → Kai, when its tool is listed (link in the prompt; Kai imports it) Egress: only `create_upload_url` (PUT to `storage.googleapis.com`) makes an outbound request of your own, so it is the only path ruled out when a request is refused for egress or sandbox reasons. Use `upload_asset_from_url` when the file is hosted. `begin_upload` needs no outbound request either, but its chunks are base64 you would have to emit yourself and that corrupts far below one chunk (sc-59914) — a scripted-caller path and not your fallback. If you write the tool arguments yourself and the network is refused, go to `upload_asset_from_computer`; the user can instead allow the domain in their sandbox's network egress settings and retry, if they would rather not re-pick the file. Set `isFinal:true` on the last chunk. The sidecar streams your chunk into GCS with proper `Content-Range` and lets GCS enforce contiguity — you don't touch GCS. Returns `{ok, nextOffsetBytes, assetId, blobName, committedBytes, finalized}`. `committedBytes` is what GCS reports it actually persisted, which can fall SHORT of what you sent — always start the next chunk at the returned `nextOffsetBytes` rather than at your own running total, and when a `hint` names a short commit, resend from there instead of advancing. On `isFinal:true` success, call `register_asset_from_blob({assetId})` (or `{blobName, fileName, contentType, teamId}` for an older session) to attach it. Rate limited to 240 calls/minute per caller, counted outside the 300 calls/minute account-wide ceiling so a full-speed upload never starves your other calls.

Parámetros de entrada

  • isFinalbooleanObligatorio

    True when this is the LAST chunk. Finalizes the upload. Must satisfy `offsetBytes + chunk.length === sizeBytes` when sizeBytes was declared at begin_upload — otherwise validated up front here (not surfaced as an opaque GCS 400).

  • uploadIdstringObligatorio

    Session token from `begin_upload`. Encrypted opaque token that carries all resume state and is portable across sidecar pods. Cross-caller lookup returns 'not found' (same error as an unknown id, no leak).

  • dataBase64stringObligatorio

    Base64-encoded chunk bytes. Decoded upper bound must be ≤12MB. Non-final chunks must decode to a multiple of 256KB (262144 bytes); final chunk (isFinal:true) can be any size.

  • offsetBytesintegerObligatorio

    Absolute byte offset in the total file where THIS chunk begins. Must equal the PREVIOUS call's returned `nextOffsetBytes` (0 for the first chunk) — use that value, not your own running total of what you sent, because GCS can commit less than a chunk carried. GCS enforces contiguity and rejects out-of-order chunks.

Parámetros de salida

Sin parámetros.