Get Media Duration
capcut_get_durationRetrieve duration, format, and resolution of video or audio files to verify media properties before editing.
Instructions
Get duration and metadata of video or audio file.
This tool analyzes media files to retrieve duration, format, and resolution information.
Args:
url (string): URL to media file
response_format ('markdown' | 'json'): Output format
Returns: { "duration": number, // Duration in seconds "format": string, // File format "width": number, // Video width (if video) "height": number // Video height (if video) }
Examples:
Check video length before adding: url="https://example.com/video.mp4"
Verify audio duration: url="https://example.com/music.mp3"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to the media file to analyze | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |