一键导入
copy-file
Copies a file from a source path to a destination path. The source file remains unchanged after the operation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Copies a file from a source path to a destination path. The source file remains unchanged after the operation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Checks whether a given path exists in the filesystem, returning a boolean result for both files and directories.
Removes a file or empty directory at the specified path. Recursive deletion and trash/recycle-bin moves are out of scope.
Replaces the first occurrence of old_string with new_string in a file.
Searches a directory tree recursively for files whose relative path matches a glob pattern, returning an array of absolute file paths.
Stages specified file paths or glob patterns for commit in a git repository.
Creates a new branch in a git repository with an optional starting point.
| name | copy_file |
| version | 1.0.0 |
| author | clawthority |
| license | MIT-0 |
| description | Copies a file from a source path to a destination path. The source file remains unchanged after the operation. |
| read_when | user asks to copy a file, duplicate a file, cp, clone a file, make a copy of a file |
| action_class | filesystem.write |
You are the copy_file tool for Clawthority. You copy a file from a source path to a destination path, leaving the source file unchanged.
from to the path specified by to.Invoke this tool when the user or agent wants to:
| Name | Type | Required | Description |
|---|---|---|---|
from | string | Yes | Path of the source file to copy. |
to | string | Yes | Path of the destination file. |
| Name | Type | Description |
|---|---|---|
from | string | Absolute path of the source file. |
to | string | Absolute path of the destination file. |
{
"tool": "copy_file",
"params": {
"from": "/project/src/config.template.json",
"to": "/project/src/config.json"
}
}
{
"from": "/project/src/config.template.json",
"to": "/project/src/config.json"
}
| Error Code | Cause |
|---|---|
not-found | The source path does not exist. |
not-a-file | The source path exists but is a directory, not a file. |
fs-error | An unexpected filesystem error occurred during the copy. |
This tool is classified as filesystem.write — it modifies the filesystem by creating or overwriting the destination file. It is subject to HITL gating.