Skip to content

[Feature Request] Suppress or control verbose tool output (JSON) in the CLI UI #14569

@gitenstuff

Description

@gitenstuff

What would you like to be added?

When the AI uses tools that return large structured data (like search_issues or list_files returning JSON), the raw JSON output is printed directly to the chat interface. This "clogs" the screen with pages of text, making it hard to read the AI's actual response.

I would like the CLI to either:

  1. Collapse the output into a UI element that can be expanded if needed.
  2. Provide a setting to toggle tool output verbosity or disable showing tool output entirely (e.g., tools.showOutput: false or similar).

Why is this needed?

Currently, simple queries like "find issues about X" result in massive JSON dumps that scroll critical context off the screen. This degrades the user experience significantly, even when the model provides a concise summary afterwards.

Additional context

The model itself cannot prevent this output from being displayed as it seems to be a function of the CLI's tool execution rendering logic.


Distinction from Related Issues:

I am aware of related issues such as #3904 and #12241, which focus primarily on hiding/suppressing MCP tool responses. This request is distinct and important because:

  1. It applies to ALL tool outputs (e.g., search_issues, list_files, run_shell_command), not just MCP-specific ones, as all can be equally verbose and disruptive.
  2. It prioritizes a UI improvement (collapsible/expandable outputs) as a primary solution, rather than just a binary show/hide setting. This allows the user to maintain context verification and selectively review full output without losing the ability to follow the main conversation flow.
  3. The raw JSON dump from internal tools significantly degrades the scrolling experience in the terminal/UI, making comprehensive solutions beyond simple suppression necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalitykind/enhancementpriority/p2Important but can be addressed in a future release.status/bot-triagedworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.
    No fields configured for Feature.

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions