Add a file to an episode from a link
add_source_from_urlAdd one camera or audio file to an episode by giving WizCut a link to it, instead of the user uploading it. WizCut downloads the file itself.
Only pass a link the user gave you or asked you to use: a direct file link, a Google Drive, Dropbox or OneDrive link shared with anyone who has the link, or, when the user asks you to add a file they attached in this chat and the chat app gives it a download link (download_url), that link. Never a web page, a folder, or a YouTube, Vimeo, Riverside or Zoom page — for those, send the user the upload link instead.
Confirm the label with the user before calling (e.g. "Camera 1 – Anna", "Host mic"); one call per file. kind is optional: WizCut works out camera or audio from the file.
It returns straight away; the import runs in the background (minutes for large files). Check get_episode_status: the file shows as importing, then uploaded — or import failed with the reason, in which case remove_file it and try another link. Only call start_processing once every file is in.
Works only before processing starts. Pass a clientRequestId you generate so a retried call doesn't import the file twice.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"jobId": "<jobId>",
"url": "<url>",
"label": "<label>"
},
"name": "add_source_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The https link to one video or audio file (direct download, a chat attachment's download_url, or a Drive/Dropbox/OneDrive share link). | |
| kind | No | Optional: camera (video) or separate audio. Leave out to let WizCut decide. | |
| jobId | Yes | The episode's id (jobId), as returned by create_episode or list_episodes. | |
| label | Yes | A name the user confirmed, e.g. "Camera 1" or "Host mic". | |
| clientRequestId | No | Your own id for this request (e.g. a UUID), so retrying is safe. Remembered for 24 hours. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| jobId | Yes | ||
| status | Yes | ||
| sourceId | Yes | ||
| nextSteps | Yes |