write_content
Write or append content to multiple files in specific paths, creating necessary directories automatically. Ideal for managing and updating file content efficiently.
Instructions
Write or append content to multiple specified files (creating directories if needed).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
items | Yes | Array of {path, content, append?} objects. |
Input Schema (JSON Schema)
{
"properties": {
"items": {
"description": "Array of {path, content, append?} objects.",
"items": {
"properties": {
"append": {
"default": false,
"description": "Append content instead of overwriting.",
"type": "boolean"
},
"content": {
"description": "Content to write.",
"type": "string"
},
"path": {
"description": "Relative path for the file.",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
}