Skip to main content

Inspect Media

Immutable Catalog + Curated Guide

This lossless descriptor comes from the active Portal catalog and is enhanced with reviewed examples.

WRITEffmpeg.media_probe
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.3
  • Descriptor hash: 7c0395b519535be5fb0ae40abaf56b77abf5199d144c8b7826d486e68dd63f30

Extract technical metadata from a media source.

Request Body

{
"jsonrpc": "2.0",
"id": "ffmpeg-media-probe-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.media_probe",
"arguments": {
"source_url": "https://cdn.example.com/video/demo.mp4"
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"asset_id"
],
"properties": {
"asset_id": {
"type": "string",
"description": "Stable ID of one staged FFmpeg media asset."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"properties": {
"format": {
"type": "object",
"description": "ffprobe container metadata.",
"additionalProperties": true
},
"streams": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
},
"description": "ffprobe audio, video, and subtitle stream metadata."
}
},
"additionalProperties": true
}

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-media-probe-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.media_probe",
"arguments": {
"source_url": "https://cdn.example.com/video/demo.mp4"
}
}
}'

Example Responses

{
"ok": true,
"duration_seconds": 132.4,
"video_codec": "h264",
"audio_codec": "aac"
}