Skip to content

Use structured JSON output #371

Description

@jerop

JSON output in headless mode returns structured data including response, statistics, and metadata. This format is ideal for programmatic processing and automation scripts.

https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/headless.md#json-output

We can use this to show the stats after a job is completed, otherwise show error message.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority/p0Critical and urgent e.g., critical security vulnerability, major breakage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions