with one click
read-file
Reads the UTF-8 text content of a file and returns it as a string.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Reads the UTF-8 text content of a file and returns it as a string.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
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.
| 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.