Upload a music track
tegas_upload_musicFree (requires an active plan). Upload one music track and get a url to reuse in
tegas_edit_video's music.url. Give exactly one of audio_base64 or file_path.
audio_base64 - the audio bytes as base64 (a data:audio/mpeg;base64,... URL is also accepted);
this is the way for any remote agent, because the file never has to be public.
file_path - a path on the FILESYSTEM OF THE MCP SERVER, so it only works for local / self-hosted
runs where the server and the agent are on the same machine, and only when the server enables it
(otherwise the tool answers with code local_files_disabled - then send audio_base64 instead).
Formats mp3, wav, m4a, up to 25 MB.
Bad input comes back as validation_error with details.reason, before anything is uploaded:
one_source_required (gave both or neither), bad_base64, empty, not_audio, too_large; a file_path
that cannot be read is file_not_readable, and a server that forbids local files answers with code
local_files_disabled.
label - a short note (e.g. "background track"), optional, kept to the first 120 characters.
Returns music_id, the stored url, the label and expires_at. Pass the returned url in
music.url of tegas_edit_video (and set music.enabled to true if music was off).
Errors: no_active_plan -> ask the user to activate a plan in the cabinet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| file_path | No | ||
| audio_base64 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||