1# Tools
2
3Zed's built-in agent has access to a variety of tools that allow it to interact with your codebase and perform tasks.
4
5## Read & Search Tools
6
7### `diagnostics`
8
9Gets errors and warnings for either a specific file or the entire project, useful after making edits to determine if further changes are needed.
10When a path is provided, shows all diagnostics for that specific file.
11When no path is provided, shows a summary of error and warning counts for all files in the project.
12
13### `fetch`
14
15Fetches a URL and returns the content as Markdown. Useful for providing docs as context.
16
17### `find_path`
18
19Quickly finds files by matching glob patterns (like "\*_/_.js"), returning matching file paths alphabetically.
20
21### `grep`
22
23Searches file contents across the project using regular expressions, preferred for finding symbols in code without knowing exact file paths.
24
25### `list_directory`
26
27Lists files and directories in a given path, providing an overview of filesystem contents.
28
29### `now`
30
31Returns the current date and time.
32
33### `open`
34
35Opens a file or URL with the default application associated with it on the user's operating system.
36
37### `read_file`
38
39Reads the content of a specified file in the project, allowing access to file contents.
40
41### `thinking`
42
43Allows the Agent to work through problems, brainstorm ideas, or plan without executing actions, useful for complex problem-solving.
44
45### `web_search`
46
47Searches the web for information, providing results with snippets and links from relevant web pages, useful for accessing real-time information.
48
49## Edit Tools
50
51### `copy_path`
52
53Copies a file or directory recursively in the project, more efficient than manually reading and writing files when duplicating content.
54
55### `create_directory`
56
57Creates a new directory at the specified path within the project, creating all necessary parent directories (similar to `mkdir -p`).
58
59### `delete_path`
60
61Deletes a file or directory (including contents recursively) at the specified path and confirms the deletion.
62
63### `edit_file`
64
65Edits files by replacing specific text with new content.
66
67### `move_path`
68
69Moves or renames a file or directory in the project, performing a rename if only the filename differs.
70
71### `terminal`
72
73Executes shell commands and returns the combined output, creating a new shell process for each invocation.