Files
Claude-Code-Workflow/.claude/workflows/context-tools.md
catlog22 17af615fe2 Add help view and core memory styles
- Introduced styles for the help view including tab transitions, accordion animations, search highlighting, and responsive design.
- Implemented core memory styles with modal base styles, memory card designs, and knowledge graph visualization.
- Enhanced dark mode support across various components.
- Added loading states and empty state designs for better user experience.
2025-12-18 18:29:45 +08:00

1.6 KiB

MCP Tools Usage

smart_search - Code Search (REQUIRED)

When: Find code, understand codebase structure, locate implementations

How:

smart_search(query="authentication logic")           // Auto mode (recommended)
smart_search(action="init", path=".")                // First-time setup

Modes: auto (intelligent routing), hybrid (best quality), exact (FTS)


read_file - Read File Contents

When: Read files found by smart_search

How:

read_file(path="/path/to/file.ts")                   // Single file
read_file(path="/src/**/*.config.ts")                // Pattern matching

edit_file - Modify Files

When: Built-in Edit tool fails or need advanced features

How:

edit_file(path="/file.ts", old_string="...", new_string="...", mode="update")
edit_file(path="/file.ts", line=10, content="...", mode="insert_after")

Modes: update (replace text), insert_after, insert_before, delete_line


write_file - Create/Overwrite Files

When: Create new files or completely replace content

How:

write_file(path="/new-file.ts", content="...")

When: Find documentation/examples outside codebase

How:

mcp__exa__search(query="React hooks 2025 documentation")
mcp__exa__search(query="FastAPI auth example", numResults=10)
mcp__exa__search(query="latest API docs", livecrawl="always")

Parameters:

  • query (required): Search query string
  • numResults (optional): Number of results to return (default: 5)
  • livecrawl (optional): "always" or "fallback" for live crawling