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