Benjamin Swerdlow

Claude Tool Call

Component

About

The ⏺ / ⎿ tool line as a real, keyboard-operable <details> disclosure.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Claude Tool Call to your project and fits it to your theme.

Code

How Claude Tool Call is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { ClaudeToolCall } from "@/components/ui/brainless-claude-tool-call";

export default function ClaudeToolCallDemo() {
  return (
    <div className="w-full max-w-3xl overflow-x-auto border border-[#2b2b2b] bg-[#1a1a1a] p-5 text-[#c0caf5]">
                <div className="space-y-2">
                  <ClaudeToolCall tool="Read" arg="next.config.ts" result="Read 5 lines" />
                  <ClaudeToolCall
                    tool="Bash"
                    arg="bun run build"
                    result="Compiled successfully in 1.2s"
                  >
                    {`▲ Next.js 16.2.10
        ✓ Compiled successfully
        ✓ Generating static pages (5/5)`}
                  </ClaudeToolCall>
                  <ClaudeToolCall tool="Bash" arg="bun test" result="1 test failed" status="error">
                    {`FAIL ./captures.test.ts
          ✕ manifest is well-formed`}
                  </ClaudeToolCall>
                </div>
    </div>
  );
}

More by Benjamin Swerdlow

View all
  • Pied Piper Onboarding

    Pied Piper Onboarding

  • Grok Session

    Grok Session

  • Grok Session Active

    Grok Session Active

  • Grok Plan

    Grok Plan

  • Codex Session

    Codex Session

  • Claude Session

    Claude Session

  • Grok Slash Menu

    Grok Slash Menu

  • Codex Slash Menu

    Codex Slash Menu