Home Explore Blog CI



zed

crates/assistant_tools/src/copy_path_tool/description.md
13bfada7114e160d1815395d4f162b3a62ac3e1b74748c9600000003000001d5
Copies a file or directory in the project, and returns confirmation that the copy succeeded.
Directory contents will be copied recursively (like `cp -r`).

This tool should be used when it's desirable to create a copy of a file or directory without modifying the original.
It's much more efficient than doing this by separately reading and then writing the file or directory's contents,
so this tool should be preferred over that approach whenever copying is the goal.

Chunks
a4f654ed (1st chunk of `crates/assistant_tools/src/copy_path_tool/description.md`)
Title: File and Directory Copying Tool
Summary
This tool efficiently copies a file or directory within a project, including recursive copying of directories. It is preferred over manually reading and writing contents when a direct copy is the desired outcome.