Skip to content

[Feature] : add appendFile tool to append content to existing files #42

Description

@HoussemEddineChaouch

What would you like to add or change?

Add an appendFile tool that takes a path and content
and appends to the end of an existing file instead
of overwriting it like writeFile does.

Why would this be useful?

writeFile overwrites the entire file. For use cases
like adding logs, notes, or entries to an existing
file the agent currently has no way to append without
losing existing content.

Possible implementation

Use fs.appendFileSync(path, content, 'utf8') in
functions.js and register in tools.js following
the existing pattern.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions