content_batch_analyze
Batch analyze multiple files in compare (cross-document) or individual (per-file) mode. Process directories or file lists with configurable output schema and thinking depth.
Instructions
Analyze multiple content files from a directory or explicit file list.
Supports two modes: 'compare' sends all files to Gemini in a single call for cross-document analysis, 'individual' analyzes each file separately with bounded concurrency (3 parallel calls).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instruction | No | What to analyze — e.g. 'compare methodologies', 'summarize each document', 'extract key findings' | Provide a comprehensive analysis of these documents. |
| directory | No | Directory to scan for content files | |
| file_paths | No | Explicit list of file paths to analyze | |
| glob_pattern | No | Glob pattern to filter files within directory | * |
| mode | No | 'compare' for cross-document analysis in one call, 'individual' for separate per-file analysis | compare |
| output_schema | No | Optional JSON Schema for each result | |
| thinking_level | No | Gemini thinking depth. | high |
| max_files | No | Maximum files to process |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||