Master an audio file with a preset
jj_master_audioUpload a local audio file, choose a mastering preset or inline settings, and render it to a 48 kHz WAV with a selected loudness target.
Instructions
Uploads a local audio file (path, or base64 content) and renders it with a Mastering preset on the server (POST /mastering/jobs): the same engine as the Jam Jam web tool. Pass EXACTLY ONE of preset (a preset id from jj_list_mastering_presets, or builtin:) and settings (inline settings, see jj_create_mastering_preset). The result is a 48 kHz WAV (format wav-pcm16 by default, wav-pcm24, or wav-f32). Asynchronous: by default this returns at once with the job, then follow it with jj_mastering_get_job; pass maxWaitMs to wait, and a render that finishes in time is downloaded in the same call (file). Open to any account (3 renders per ISO week for a free account, 429 quota-exhausted beyond; unlimited for Premium) and needs the mastering:write scope. Limits: a file of at most 200 MB and 10 minutes, one or two channels; one render runs and three wait per account. The render consumes the Mastering render counter (shared with the Jam Jam app), counted at submission; a failed or cancelled render is refunded. Results are kept 24 hours. Only call it when the user asked to master that file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "jj_master_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute or relative local path to the audio file. Mutually exclusive with contentBase64. | |
| format | No | "wav-pcm16" (default), "wav-pcm24" (24-bit PCM) or "wav-f32" (32-bit float). | |
| preset | No | Preset to apply: the uuid of a saved preset, or builtin:<id> (builtin:balanced, ...). Mutually exclusive with settings. | |
| filename | No | File name (with extension). Required with contentBase64; defaults to the basename of "path". | |
| settings | No | Inline settings (format version 1) instead of a saved preset. Mutually exclusive with preset. | |
| maxWaitMs | No | Wait up to this long (milliseconds, cap 600000) for the render to finish and download it. Default 0: return at once. Waiting needs a key with mastering:read, otherwise the job is returned at once. The job keeps running if it is exceeded. | |
| contentBase64 | No | Base64-encoded audio content. Mutually exclusive with path. Requires "filename". |