Documentation Index
Fetch the complete documentation index at: https://docs.profclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
File operation tools give the agent read and write access to your filesystem within the configured allowed paths. Every operation passes throughFsGuard - a path normalization and allowlist guard that prevents path traversal attacks and blocks access to sensitive files like .env, SSH keys, and system credentials.
Tools
read_file
Read content from a file. Supports text and binary (base64) output and partial reads by line range.
Security level: safe | Tier: Essential
File path to read. Can be relative (resolved against workdir) or absolute.
Output encoding. Options:
utf-8, base64.Maximum lines to read from the start (or from
offset).Start reading from this line number (0-indexed).
/etc/passwd, /etc/shadow, ~/.ssh, ~/.gnupg, .env*.
write_file
Write content to a file. Creates new files or overwrites existing ones.
Security level: moderate | Tier: Essential
File path to write.
Content to write.
Append to end of file instead of overwriting.
Create parent directories if they do not exist.
edit_file
Surgical find-and-replace in a file. Far more efficient than rewriting entire files - only changes what’s needed.
Security level: moderate | Tier: Essential
File path to edit.
Exact string to find. Must be unique in the file unless
replace_all is true.Replacement string.
Replace all occurrences instead of just the first.
AMBIGUOUS_MATCH if old_string appears multiple times without replace_all.
search_files
Find files using glob patterns.
Security level: safe | Tier: Essential
Glob pattern (e.g.,
**/*.ts, src/**/*.test.ts).Base directory to search from. Defaults to workdir.
Maximum files to return.
node_modules/, .git/, dist/, build/.
grep
Search file contents using regex patterns.
Security level: safe | Tier: Essential
Regex pattern to search for (case-insensitive by default).
File or directory to search. Defaults to workdir.
Glob filter for files (e.g.,
**/*.ts).Maximum matches to return.
Lines of context to include around each match.
file:line: content format.
directory_tree
Show the directory structure as a tree.
Security level: safe | Tier: Essential
Root directory.
Maximum depth to traverse (1-10).
Include files, not just directories.
Show only entries matching this glob (e.g.,
*.ts).node_modules, .git, dist, build, coverage, .next, __pycache__, .venv.
patch_apply
Apply a unified diff patch to a file.
Security level: moderate | Tier: Standard
File to patch.
Unified diff content (standard
git diff or diff -u format).Apply patch in reverse (undo a patch).
Related Tools
Git Operations
Stage and commit file changes with git tools.
Code Analysis
Lint and type-check after editing files.