Media Export To Discord
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
agent_ready - Risk:
write - Catalog version:
2026-07-12.3 - Descriptor hash:
063856014631cd366e4f1720cffcd1a058386f3da2fa07b4028a6f0856bd2333
Use this to upload a staged asset to a specific Discord channel with an optional message. It writes to an external system and requires configured Discord credentials.
Request Body
{
"jsonrpc": "2.0",
"id": "ffmpeg-media-export-to-discord-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.media_export_to_discord",
"arguments": {
"asset_id": "asset_id_123",
"channel_id": "channel_id_123",
"message": "",
"filename": ""
}
}
}
Arguments Schema
{
"type": "object",
"required": [
"asset_id",
"channel_id"
],
"properties": {
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional Discord message sent with the exported file."
},
"asset_id": {
"type": "string",
"description": "Stable ID of one staged FFmpeg media asset."
},
"filename": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Optional safe filename for the exported attachment."
},
"channel_id": {
"type": "string",
"description": "Discord channel ID that should receive the exported asset."
}
},
"additionalProperties": false
}
Output Schema
{
"type": "object",
"required": [
"message_id"
],
"properties": {
"message_id": {
"type": "string",
"description": "Created Discord message ID."
}
},
"additionalProperties": false
}
Code Examples
- cURL
- Node.js
- Python
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-media-export-to-discord-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.media_export_to_discord",
"arguments": {
"asset_id": "asset_id_123",
"channel_id": "channel_id_123",
"message": "",
"filename": ""
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "ffmpeg-media-export-to-discord-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.media_export_to_discord",
"arguments": {
"asset_id": "asset_id_123",
"channel_id": "channel_id_123",
"message": "",
"filename": ""
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "ffmpeg-media-export-to-discord-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.media_export_to_discord",
"arguments": {
"asset_id": "asset_id_123",
"channel_id": "channel_id_123",
"message": "",
"filename": ""
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"ok": true,
"message": "Tool ffmpeg.media_export_to_discord executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}