content_analyze
Analyze files, URLs, or text to extract insights, summarize content, or identify key information using customizable instructions and structured JSON output.
Instructions
Analyze content (file, URL, or text) with any instruction.
Provide exactly one of file_path, url, or text. Uses Gemini's structured output for reliable JSON responses. Pass a custom output_schema to control the response shape, or use the default ContentResult schema.
Args: instruction: What to analyze or extract from the content. file_path: Path to a local PDF or text file. url: URL to fetch and analyze. text: Raw text content. output_schema: Optional JSON Schema dict for custom output shape. thinking_level: Gemini thinking depth.
Returns: Dict matching ContentResult schema (default) or the custom output_schema.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instruction | No | What to analyze — e.g. 'summarize key findings', 'extract methodology', 'list all citations' | Provide a comprehensive analysis of this content. |
| file_path | No | Local file path (PDF or text) | |
| url | No | URL to analyze | |
| text | No | Raw text content | |
| output_schema | No | Optional JSON Schema for the response. If omitted, uses default ContentResult schema. | |
| thinking_level | No | medium |