Skip to main content

Media Ingest From Drive

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

WRITEffmpeg.media_ingest_from_drive
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: 2026-07-12.3
  • Descriptor hash: 3054e6c0ca01edcbdc8c5b1f24073bc5dd06697dd3c3203ed02cb73f3facd6a7

Use this to copy a Google Drive file into owned FFmpeg staging storage by file ID and return an asset record. The Drive file must be reachable by the configured ingest path; this reads external content and creates local state.

Request Body

{
"jsonrpc": "2.0",
"id": "ffmpeg-media-ingest-from-drive-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.media_ingest_from_drive",
"arguments": {
"drive_file_id": "drive_file_id_123",
"ttl_hours": ""
}
}
}

Arguments Schema

{
"type": "object",
"required": [
"drive_file_id"
],
"properties": {
"ttl_hours": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "Optional staged-asset lifetime in hours before automatic expiry."
},
"drive_file_id": {
"type": "string",
"description": "Google Drive file ID reachable by the configured ingest integration."
}
},
"additionalProperties": false
}

Output Schema

{
"type": "object",
"required": [
"asset_id"
],
"properties": {
"sha256": {
"type": "string",
"description": "SHA-256 digest of the staged bytes."
},
"asset_id": {
"type": "string",
"description": "Stable staged-media asset ID."
},
"mime_type": {
"type": "string",
"description": "Validated media MIME type."
},
"expires_at": {
"type": "integer",
"description": "Unix expiry timestamp for the staged asset."
},
"size_bytes": {
"type": "integer",
"description": "Validated asset byte size."
},
"original_filename": {
"type": "string",
"description": "Stored safe original filename."
}
},
"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-media-ingest-from-drive-example",
"method": "tools/call",
"params": {
"name": "ffmpeg.media_ingest_from_drive",
"arguments": {
"drive_file_id": "drive_file_id_123",
"ttl_hours": ""
}
}
}'

Example Responses

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