Ahnii!

Here’s a reference guide to all tools available in Cursor AI. This helps both users and AI instances understand what’s possible and how to use each tool effectively.

Search Tools

  • Purpose: Find relevant code snippets based on semantic meaning
  • Best for: Understanding code context and finding related functionality
  • Purpose: Find exact text matches using regex
  • Best for: Finding specific strings, function names, or patterns
  • Purpose: Fuzzy search for files by name
  • Best for: Finding files when you know part of the name

File Operations

Read Files

  • Purpose: View file contents
  • Can read up to 250 lines at a time

List Directory

  • Purpose: Quick directory exploration
  • Best for: Understanding project structure

Code Editing

Edit Files

  • Purpose: Modify existing files
  • Best practices:
    • Always read file before editing
    • Provide clear edit instructions
    • Include necessary context

Terminal Operations

Run Commands

  • Purpose: Execute shell commands
  • Can run in background
  • Maintains shell context between calls

Usage Tips

  1. Tool Selection

    • Start with list_dir for exploration
    • Use semantic search for understanding
    • Use text search for specific text
    • Combine tools for complex tasks
  2. Best Practices

    • Explain actions before using tools
    • Gather sufficient context
    • Use most specific tool for the task

Baamaapii