Built-in Tools
affer ships with 15 built-in tools in internal/tools/. Tool calls are subject to your active permission mode and any configured PreToolUse / PostToolUse hooks.
| Tool | Category | Purpose |
|---|---|---|
read |
Files | Read file contents with line ranges. |
write |
Files | Create or overwrite a file (creates a SHA-256 checkpoint first). |
edit |
Files | Apply targeted string replacements inside a file. |
patch |
Files | Apply unified multi-hunk diffs across one or more files. |
glob |
Search | Match file paths using glob patterns (doublestar). |
grep |
Search | Search file contents by pattern across the workspace. |
ls |
Search | List directory entries. |
bash |
Shell | Run a shell command in the workspace. |
bash_output |
Shell | Read output from a running background shell process. |
kill_shell |
Shell | Terminate a background shell process. |
fetch |
Network | Fetch content from an approved HTTP/HTTPS URL. |
diagnostics |
Code | Collect language server (LSP) errors and warnings. |
todo |
Planning | Track structured task items during multi-step runs. |
task |
Agents | Spawn a subagent for isolated research or subtasks. |
ask |
Interaction | Ask the user a clarifying question before proceeding. |