Skip to content

Simplify API and Fetch tool output display#1031

Merged
dgageot merged 1 commit intodocker:mainfrom
jeanlaurent:better-fetch-output
Dec 5, 2025
Merged

Simplify API and Fetch tool output display#1031
dgageot merged 1 commit intodocker:mainfrom
jeanlaurent:better-fetch-output

Conversation

@jeanlaurent
Copy link
Copy Markdown
Member

Changes the verbose JSON output display for API URLs and Fetch URLs tools to a
single-line format showing only essential information.

Before:
Screenshot 2025-12-05 at 14 51 49

After:
Screenshot 2025-12-05 at 14 51 10

Changes

  • Created new webtool component for web-based tools (API URLs, Fetch URLs)
  • Extracts URLs from arguments for cleaner display
  • Shows response size in bytes/KB/MB instead of full JSON output
  • Uses single-line format with : separator
  • Enhanced factory to support category-based component registration

Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
@jeanlaurent jeanlaurent requested a review from a team as a code owner December 5, 2025 13:52
}

// extractSummary tries to extract a meaningful summary from the API response
func extractSummary(content string) string {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On it

@dgageot dgageot merged commit 10fc93a into docker:main Dec 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants