# `Alloy.Tool.Core.Write`
[🔗](https://github.com/alloy-ex/alloy/blob/v0.10.1/lib/alloy/tool/core/write.ex#L1)

Built-in tool: write files, creating parent directories as needed.

Overwrites the target file completely. Parent directories are created
automatically via `File.mkdir_p!/1`. Paths are resolved against the
agent's `:working_directory` context.

## Usage

    config = %{tools: [Alloy.Tool.Core.Write], ...}

The agent can then call:

    %{file_path: "lib/new_file.ex", content: "defmodule NewFile do\nend"}

---

*Consult [api-reference.md](api-reference.md) for complete listing*
