ActionIcon

Icon component for tool action types

ActionIcon renders the appropriate icon for a given action type. It maps Claude's tool calls to visual icons for better UX in tool call displays.

All Action Icons

Command Run
File Read
File Edit
File Write
Search
Glob
Web Fetch
Web Search
MCP Tool
Generic

Import

import
import { ActionIcon } from '@ash-cloud/ash-ui';

Usage

ToolHeader.tsx
import { ActionIcon } from '@ash-cloud/ash-ui';

function ToolHeader({ toolCall }) {
  return (
    <div className="flex items-center gap-2">
      <ActionIcon actionType={toolCall.actionType} />
      <span>{toolCall.toolName}</span>
    </div>
  );
}

Props

PropTypeDefaultDescription
actionTypeActionTyperequiredThe action type to show icon for
classNamestringundefinedAdditional CSS classes

Action Type Mapping

Action TypeIconDescription
command_runBash commands
file_readReading files
file_editEditing files
file_writeCreating files
searchCode search
globFile patterns
web_fetchHTTP requests
web_searchWeb searches
mcp_toolMCP server tools
genericOther tools