Docs / Tools

Tools

Fawx ships with 13+ built-in tools. The model calls them natively through provider function-calling APIs. No prompt engineering required.

How tools work

When the AI model decides it needs to take an action (read a file, search the web, run a command), it emits a structured tool call. Fawx executes the tool, checks permissions, and returns the result to the model. This can happen multiple times in a single response.

Tools are subject to the capability-based permission system. If a tool call falls outside the agent's boundaries, it receives a structured denial explaining what happened and why.

Built-in tools

File system

read_file

Read the contents of a file. Supports text files and common binary formats. Large files are chunked automatically.

write_file

Create or overwrite a file. Creates parent directories automatically.

edit_file

Make precise edits to a file by specifying the exact text to find and replace. Safer than full file writes for targeted changes.

list_dir

List the contents of a directory with file sizes and types.

Shell

shell

Execute shell commands. Supports background processes, timeouts, and working directory specification. Output is captured and returned to the model.

Web

web_search

Search the web using Brave Search. Returns titles, URLs, and snippets.

web_fetch

Fetch a URL and extract readable content as markdown or text. Handles HTML, PDFs, and other common formats.

browser

Control a headless browser for complex web interactions. Navigate, click, type, take screenshots, and extract page content.

Git

git_status

Check the current repository status: branch, staged changes, untracked files.

git_diff

View diffs for staged or unstaged changes, or between commits.

git_commit

Stage files and create commits with a message.

Memory

memory_read

Read from the agent's structured memory. Memories persist across sessions and are stored locally.

memory_write

Write observations and learnings to structured memory for future reference.

WASM skills

Beyond built-in tools, Fawx supports WASM skill plugins that add new capabilities. Skills are loaded at runtime, sandboxed, and cryptographically signed. See the Skills docs for details.

Tool calling flow

A typical multi-step interaction:

  1. You ask Fawx to "find all TODO comments in the project and create a summary."
  2. Fawx calls shell to run grep -rn TODO src/
  3. The results come back. Fawx calls write_file to create TODO-summary.md
  4. Fawx responds with a summary of what it found and where it saved the file.

Each step is visible in the conversation. The model decides which tools to call, and Fawx handles execution, error recovery, and retries.

← Setup Skills →