fileWrite
Create, edit, and write files using specified modes (write, append, JSON) with options to create directories and format content.
Instructions
檔案寫入功能,為文件提供建立、編輯與寫入功能
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | ||
createDirs | No | ||
filePath | Yes | ||
mode | No | write | |
prettify | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"content": {
"type": "string"
},
"createDirs": {
"type": "boolean"
},
"filePath": {
"type": "string"
},
"mode": {
"default": "write",
"enum": [
"write",
"append",
"json"
],
"type": "string"
},
"prettify": {
"type": "boolean"
}
},
"required": [
"filePath",
"content"
],
"type": "object"
}