Skip to content

filesystem: write_or_update_file #2807

@agn-7

Description

@agn-7

With the filesystem MCP server, how can I write to a file in a way that, if it does not exist, creates the file, then adds the content to it; if it exists, updates the file by appending the new content, rather than overwriting the existing content in the file? Is it possible? Does it have such a tool?

something like write_or_update_file or append_file with creation of the file if it doesn't exist, and keeping the previous content. or even an option for write_file to append the new content in the existing file, not overwriting . . .

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions