video_analyze
Analyze a YouTube video or local file with any instruction. Returns structured JSON output, with optional strict contract for richer analysis including strategy report and concept maps.
Instructions
Analyze a video (YouTube URL or local file) with any instruction.
Provide exactly one of url or file_path. Uses Gemini's structured output for reliable JSON responses. Pass a custom output_schema to control the response shape, or use the default VideoResult schema.
When strict_contract=True, runs the full contract pipeline: analysis with strict Pydantic models, parallel strategy/concept-map generation, artifact rendering, and quality gates. Returns richer output but takes longer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | YouTube video URL. | |
| file_path | No | Path to a local video file. | |
| instruction | No | What to analyze — e.g. 'summarize key points', 'extract all CLI commands shown', 'list all recipes and ingredients' | Provide a comprehensive analysis of this video. |
| output_schema | No | Optional JSON Schema for the response. If omitted, uses default VideoResult schema. | |
| thinking_level | No | Gemini thinking depth. | high |
| use_cache | No | Use cached results | |
| strict_contract | No | Enable strict contract pipeline with quality gates, artifact rendering, and semantic validation. Produces richer output with strategy report, concept map, and HTML/Markdown artifacts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||