analyze_video
Analyze video ad creatives to gain actionable insights. This tool delivers scene-by-scene breakdowns, transcripts, and performance signals to inform iteration and optimization.
Instructions
Analyze video ad creatives using Gemini's native video understanding. Accepts a single video file path or a directory of videos. Returns a structured creative breakdown including scene-by-scene analysis, transcript, performance signals, and iteration briefs. Supports: .3gp, .avi, .flv, .m4v, .mkv, .mov, .mp4, .mpeg, .mpg, .webm, .wmv
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": {
"path": "<path>"
},
"name": "analyze_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a video file or a directory containing video files. If a directory, all supported video files in it will be analyzed. | |
| model | No | Gemini model to use. 'flash' (gemini-2.5-flash) is fast and cheap — good for batch processing. 'pro' (gemini-2.5-pro) is more capable — good for deep single-video analysis. | flash |
| output_dir | No | Optional directory to save analysis as markdown files. Each video gets a separate _analysis.md file. | |
| custom_prompt | No | Optional custom analysis prompt. If not provided, uses the default ad creative analysis prompt covering creative structure, performance signals, and iteration briefs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |