optimize_large_media_buffer
Downsamples oversized video/audio and large binary files to a memory budget, isolates audio for transcription, extracts keyframes, and enables memory-mapped streaming to prevent agent exhaustion.
Instructions
Solves agent memory/context exhaustion for oversized media (video/audio) and large binary dumps (> 50MB). Auto-downsamples videos to agent budget, isolates audio tracks for transcription, extracts keyframes, and provides mmap streaming.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "optimize_large_media_buffer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to media or binary file | |
| target_max_mb | No | Target max MB memory budget (default 50) |