Encode a project item with Media Encoder
export_project_itemEncode a Project panel clip with an Adobe Media Encoder export preset, queue and start the job, and optionally wait for the output file with size and media details.
Instructions
Encode a source clip from the Project panel with an export preset through Adobe Media Encoder (queued and started at once). Returns job_id; with wait=true (default) waits for the file and returns its size and, with ffprobe, duration and streams. range "in_to_out" uses the clip's source In/Out marks.
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": {
"output_path": "<output_path>"
},
"name": "export_project_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait until Media Encoder has written the file. Default true. | |
| range | No | "entire" (default) or "in_to_out" (the clip's In/Out marks). | |
| item_id | No | Stable project item id (from list_project_items). Preferred. | |
| exporter | No | Narrow preset_name to one exporter, by its exact name from list_exporters, e.g. "H.264", "QuickTime", "Waveform Audio", "MP3". | |
| item_name | No | Item name; the first match in the project is used. | |
| item_path | No | Path in the Project panel, e.g. "Footage/Day 1/clip.mp4". | |
| overwrite | No | Replace an existing output file. Default false. | |
| output_path | Yes | Absolute output file path. Its extension is set to the one the preset produces. | |
| preset_name | No | Preset name to look up when preset_path is not given, e.g. "Match Source - High bitrate". Words must all match; an exact name wins. | |
| preset_path | No | Absolute path of an .epr export preset (from find_export_presets). Preferred. | |
| timeout_seconds | No | With wait: how long to wait for the file. Default 600. | |
| remove_on_completion | No | Remove the job from the Media Encoder queue when it finishes. Default false. |