write_file
Create or modify files in Obsidian vaults by writing content with options to overwrite, append, or prepend text to existing files.
Instructions
Write file content with different modes: overwrite (default), append, or prepend. Handles both create and update operations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file | |
| content | Yes | Content to write | |
| mode | No | Write mode | overwrite |