write_file
Create or update files in an Obsidian vault by writing content. Choose modes: overwrite, append, or prepend. Simplifies file management via REST API.
Instructions
Write file content with different modes: overwrite (default), append, or prepend. Handles both create and update operations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
content | Yes | Content to write | |
mode | No | Write mode | overwrite |
path | Yes | Path to the file |
Input Schema (JSON Schema)
{
"properties": {
"content": {
"description": "Content to write",
"type": "string"
},
"mode": {
"default": "overwrite",
"description": "Write mode",
"enum": [
"overwrite",
"append",
"prepend"
],
"type": "string"
},
"path": {
"description": "Path to the file",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
}