system · Command reference

qzx generateContent

What it does

Uses Gemini AI to analyze and explain file contents

Canonical command: generateContent

Accepted aliases: WonderContentGen, explainfile, aianalyze, analyzeContent

Case-sensitive: no

Included in the published package

Available in PyPI 0.2.2.0.2. This page documents the 0.2.2.0.2 alpha development checkout.

Safety and effects

Can mutate state

No documented dry-run parameter

No native program invocation in the current classification

May use the network

No inherent elevation requirement

Sends a bounded sample of the selected file and the prompt to the Google Gemini API. The result identifies that external data sharing.

This command shares the documented data with an external service.

This safety classification was reviewed against implementation digest sha256:74709781f1f323e4a5f542aeb49cb86d8b9581d7f999c49250b19558f8c0e10e on 2026-07-24.

Exact syntax

qzx generateContent <file_path> [sample_size] [model] [custom_prompt] --json

Parameters

NameTypeRequiredDefaultDescription
file_pathstrYesNot declaredPath to the file to analyze
sample_sizeintNo500Number of characters to sample from beginning, middle, and end (default: 500)
modelstrNo""Gemini model to use (default: auto-select from available models)
custom_promptstrNo""Custom prompt to send to Gemini (default: uses internal prompt)

Input examples

qzx WonderContentGen "path/to/file.txt"

Analyze and explain the content of file.txt using Gemini AI

qzx WonderContentGen "path/to/file.txt" 1000

Explain file content using 1000 characters from each section

qzx WonderContentGen "path/to/file.txt" 500 "gemini-1.5-pro"

Use a specific Gemini model for analysis

qzx WonderContentGen "path/to/file.txt" 500 "" "What programming language is this?"

Ask Gemini a specific question about the file content

For the complete structured payload, add --json: qzx generateContent <file_path> [sample_size] [model] [custom_prompt] --json

Representative output example

This illustrative JSON is derived from the current implementation-backed result contract. It shows what the command can return without claiming a recorded execution; values vary with inputs, host, permissions, and optional tools.

Example command: qzx WonderContentGen "path/to/file.txt" --json

{
    "success": true,
    "message": "Uses Gemini AI to analyze and explain file contents. In this illustrative example, the command completed successfully.",
    "details": {
        "missing": [
            "Example value"
        ],
        "remediation": "Example value"
    },
    "explanation": "Example value",
    "external_service": {
        "provider": "Example value",
        "content_shared": true,
        "sampled_characters_per_section": "Example value"
    },
    "file_path": "C:\\project\\example.txt",
    "file_size": 4096,
    "model_used": "Example value",
    "sample_size": "Example value"
}
View the JSON result contract
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "required": [
        "success",
        "message"
    ],
    "properties": {
        "success": {
            "type": "boolean"
        },
        "message": {
            "type": "string"
        },
        "details": {
            "oneOf": [
                {
                    "type": "object",
                    "properties": {
                        "missing": {
                            "type": "array"
                        },
                        "remediation": {
                            "type": "string"
                        }
                    },
                    "additionalProperties": true
                },
                {
                    "type": "object",
                    "properties": {
                        "requested_model": [],
                        "available_models": []
                    },
                    "additionalProperties": true
                }
            ]
        },
        "error": {
            "type": "string"
        },
        "error_code": {
            "type": "string"
        },
        "explanation": [],
        "external_service": {
            "type": "object",
            "properties": {
                "provider": {
                    "type": "string"
                },
                "content_shared": {
                    "type": "boolean"
                },
                "sampled_characters_per_section": []
            },
            "additionalProperties": true
        },
        "file_path": [],
        "file_size": [],
        "model_used": [],
        "sample_size": []
    },
    "additionalProperties": true
}

Errors and limits

The public contract requires success=false and a descriptive message on failure. This catalog does not yet declare a command-specific error taxonomy; inspect the result and do not invent error codes.

QZX is alpha software. Optional dependencies, permissions, and host capabilities can change the result.

Evidence workflow: requires an authorized endpoint or reviewed fixture.

Evidence and provenance

Tests
No command-specific test file with the same module name was found; this does not prove that all coverage is absent.
Documentation channel
Development documentation 0.2.2.0.2 · main · sha256:319b16857a87636ebc3b89734cc040a737bb56194464fca33ce73bdae2043096
Availability
0.2.2.0.2 or earlier

Keep exploring

These commands also belong to the system category. Compare them to choose the operation that best fits your task.

Explore all QZX commands