FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[UI-REWRITE]: Hide the Arguments section for tools with no input arguments · Issue #6950 · IBM/mcp-context-forge · GitHub

[UI-REWRITE]: Hide the Arguments section for tools with no input arguments #6950

Description

A tool that declares no input arguments still renders an Arguments heading followed by "This tool does not define input arguments." e.g.

ToolArgumentsForm.tsx:211-222 always renders the section and its heading, and adds the empty message when spec.fields.length === 0. The complex schema case returns earlier at line 168, so an empty field list at that point means the tool has no arguments rather than arguments the form could not render.

Proposed change: render nothing when the field list is empty, and remove the tools.details.preview.arguments.empty string along with its translations.

The generated snippet continues to show empty arguments for such a tool, which is accurate and should stay.

This is the same component as items 3 and 4 of #6860 and can be picked up alongside them.

Scope is the web UI only, no API change, and no work on the Admin UI. This surface is live in the Tools drawer today.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssues / Features awaiting triageui-rewriteTasks for the isolated ui rewrite feature branch

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL