MCP tool calls display unnecessary blank line between tool name and parameters

Resolved 💬 2 comments Opened Mar 24, 2026 by GlenMonad Closed Apr 21, 2026

Description

When MCP tool calls are rendered in the Claude Code UI, there is an unnecessary blank line (empty space) between the tool name header and the parameters/arguments display.

Current Behavior

• plugin:context-mode:context-mode – ctx_execute (MCP)
                                     (commands: [...],
                                      queries: [...])

The parameters start with a large left margin and there appears to be vertical spacing between the tool name and the content, causing a lot of wasted vertical space — especially when parameters are long and wrap across multiple lines.

Expected Behavior

Similar to how Bash tool calls are rendered:

• Bash(git checkout -b fix/branch-name)
  └ Switched to a new branch 'fix/branch-name'

The tool name and parameters should be on the same line (inline), or at minimum the parameters should start immediately on the next line without extra blank space — just like Bash tool calls.

Impact

When using MCP tools with long parameter lists (e.g. ctx_batch_execute with multiple commands and queries), the display becomes very tall due to:

  1. The blank/empty space after the tool name line
  2. The wide left margin pushing content to a narrow right column, causing excessive line wrapping

Environment

  • Claude Code version: 2.1.81
  • OS: macOS Darwin 24.6.0
  • Shell: zsh

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗