Skip to content

devtool: show param descriptions in the left side panel - #963

Draft
claude[bot] wants to merge 1 commit into
mainfrom
devtool-param-descriptions
Draft

devtool: show param descriptions in the left side panel#963
claude[bot] wants to merge 1 commit into
mainfrom
devtool-param-descriptions

Conversation

@claude

@claude claude Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Requested by Julien Vallini · Slack thread

Before / After

Before: hovering (or looking at) a param in the DevTools left side panel showed no description — the full description was only reachable by clicking a "... more" link that opened a modal dialog, i.e. by leaving the panel.

After: each param's description is shown as a tooltip on hover of the param label, so it stays accessible inline in the panel. The hover affordance only appears when the param actually has a description.

How

All changes are in packages/devtools/src/components/layout/tools-list/form/templates.tsx — the RJSF templates that render the generated tool-input form in the left panel:

  • Added a small shared FieldLabel helper that renders the param label and, when a description exists, wraps it in the existing Tooltip primitive (@alpic-ai/ui/components/tooltip, the same one already used elsewhere in this file) to reveal the full description on hover. When there is no description it renders a plain label, so no affordance is shown.
  • Used FieldLabel in FieldTemplate (scalar params), ObjectFieldTemplate, and ArrayFieldTemplate, replacing the always-visible truncated description text. The inline text is kept only as a fallback for the rare case of a field/container that has a description but no label/title to hang the tooltip on.

Typecheck (tsc -b), lint/format (biome ci), and unit tests pass for the devtools package.

Closes #960

🤖 Generated with Claude Code

https://claude.ai/code/session_018YtbxbHyEu6gTT7AjtKHAk


Generated by Claude Code

Surface each MCP tool param's description in the left side panel via a
hover tooltip on the param label, so descriptions stay accessible without
opening a dialog. The tooltip only appears when the param has a
description; the plain label is rendered otherwise.

Adds a shared FieldLabel helper used by the field, object, and array
templates, replacing the always-visible truncated description text.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018YtbxbHyEu6gTT7AjtKHAk
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.

devtool: show param descriptions in the left side panel

1 participant