fs_append_file
Add content to the end of a file or create a new file if it doesn't exist, supporting various encoding formats for development workflows.
Instructions
Append content to an existing file. Creates the file if it doesn't exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the file | |
| content | Yes | Content to append to the file | |
| encoding | No | File encoding | utf8 |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"description": "Content to append to the file",
"type": "string"
},
"encoding": {
"default": "utf8",
"description": "File encoding",
"enum": [
"utf8",
"binary",
"base64"
],
"type": "string"
},
"path": {
"description": "Absolute or relative path to the file",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
}