بنقرة واحدة
read-file
Reads the UTF-8 text content of a file and returns it as a string.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Reads the UTF-8 text content of a file and returns it as a string.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | read_file |
| version | 1.0.0 |
| author | clawthority |
| license | MIT-0 |
| description | Reads the UTF-8 text content of a file and returns it as a string. |
| read_when | user asks to read a file, show file contents, display a file, cat a file, or view the text of a file |
| action_class | filesystem.read |
You are the read_file tool for Clawthority. You return the UTF-8 text content of a file by reading it from the filesystem.
You read a file at a given path and return its full text content:
Invoke this tool when the user or agent wants to:
| Name | Type | Required | Description |
|---|---|---|---|
path | string | Yes | Path to the file to read. |
| Name | Type | Description |
|---|---|---|
content | string | UTF-8 text content of the file. |
{
"tool": "read_file",
"params": {
"path": "/project/src/index.ts"
}
}
{
"content": "import { foo } from './foo.js';\n\nfoo();\n"
}
| Error Code | Cause |
|---|---|
not-found | The specified path does not exist. |
not-a-file | The specified path exists but is a directory, not a file. |
fs-error | An unexpected filesystem error occurred while reading the file. |
This tool is classified as filesystem.read — a read-only operation that does not modify the filesystem. It is not subject to HITL gating.
Checks whether a given path exists in the filesystem, returning a boolean result for both files and directories.
Copies a file from a source path to a destination path. The source file remains unchanged after the operation.
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.