Write File
write_fileSave text or base64 content to a path in a Fulcra account, creating new versions on overwrite so agents can share data and detect changes.
Instructions
Write a file to the user's Fulcra account.
Writing to an existing path creates a new version; earlier versions are
kept and can be restored with restore_file. Other agents can detect the
change through get_data_updates (under "file_changes") and read it with
read_file, so files are a good way to pass data between agents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The full path to write to (e.g. "/agents/state.json"). | |
| content | No | The text to write, or with encoding="base64", the file's bytes base64-encoded (up to 5 MB). For larger files, or files the user has on their computer, use open_file_manager. | |
| encoding | No | "text" (default) or "base64". "upload_link" leaves content empty and returns a link to send a file on disk to, e.g. from a sandbox: `curl -T <file> <link>` (up to 30 MB). | text |
| content_type | No | Optional MIME type; guessed from the file name when left out (e.g. "application/json" for .json). |