Skip to main content

Audio Fade

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEffmpeg.audio_fade
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.3
  • Descriptor hash: b0115776e2f89f6a18d3138ecf506184c828bcb02f9b8ee72747e6444a709e41

Use this to add bounded fade-in and fade-out timing to a staged audio asset. It queues a new output asset rather than modifying the source.

Request Body

{
"jsonrpc": "2.0",
"id": "ffmpeg-audio-fade-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.audio_fade",
"arguments": {
"asset_id": "asset_id_123",
"bitrate": "",
"priority": "",
"fade_in_sec": "",
"fade_out_sec": "",
"output_format": "output_format_example",
"fade_out_start": ""
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"asset_id"
],
"properties": {
"bitrate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional FFmpeg bitrate string accepted by the bounded operation."
},
"asset_id": {
"type": "string",
"description": "Stable ID of one staged FFmpeg media asset."
},
"priority": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional queue priority configured by the server, such as urgent or batch."
},
"fade_in_sec": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Fade-in duration in seconds."
},
"fade_out_sec": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Fade-out duration in seconds."
},
"output_format": {
"type": "string",
"default": "m4a",
"description": "Requested supported container or codec family for the new audio asset."
},
"fade_out_start": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Optional timestamp in seconds where fade-out begins."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"job_id",
"cache_hit"
],
"properties": {
"job_id": {
"type": "string",
"description": "Stable ID used with the job readback tools."
},
"cache_hit": {
"type": "boolean",
"description": "Whether a matching completed result was reused."
},
"output_asset_ids": {
"type": "array",
"items": {
"type": "string"
},
"description": "Completed output asset IDs when immediately available from cache."
}
},
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "ffmpeg-audio-fade-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.audio_fade",
"arguments": {
"asset_id": "asset_id_123",
"bitrate": "",
"priority": "",
"fade_in_sec": "",
"fade_out_sec": "",
"output_format": "output_format_example",
"fade_out_start": ""
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool ffmpeg.audio_fade executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}