Agent tools list

Tools Available in the Cursor IDE Agent

The Cursor IDE agent provides a variety of tools to assist with code exploration, management, and execution. Here’s a detailed list of the tools and their specific use cases:

  1. list_dir
    This tool is used to list the contents of a directory. It is particularly helpful for understanding the structure of files and folders within a project or for locating where specific components are stored.
  2. codebase_search
    A semantic search tool for the codebase. This allows users to find specific features, functions, or patterns in the code without having to know exact keywords or file locations, making it ideal for navigating large or unfamiliar projects.
  3. read_file
    This tool enables you to read the content of a specific file. It is useful for reviewing the details of code or configurations without opening the file in a separate editor.
  4. run_terminal_command
    With this tool, you can execute terminal commands directly from the IDE. It’s especially valuable for running Django management commands, executing scripts, or performing system-level operations without leaving the development environment.
  5. grep_search
    A tool that performs regex-based text searches. It is a powerful way to locate specific patterns or strings within files, making it highly effective for debugging or identifying code issues.
  6. file_search
    This tool searches for files based on their names. It is useful for quickly finding a specific file when you know its name but not its location in the directory.
  7. edit_file
    This tool allows you to modify the content of a file. It is essential for making code changes, updating configurations, or fixing bugs directly within the IDE.
  8. delete_file
    A tool to delete files. Use this to remove unnecessary or obsolete files from your project, helping keep your workspace organized.
5 Likes

?How to use

Thanks a lot - Were did you find this information?