edit_file
Modify and review text in Obsidian vault files stored in iCloud Drive. Preview changes with dry-run mode; original files update only after user confirmation. Works within specified directories.
Instructions
Edit a specific file under /Users/username/Library/Mobile Documents/iCloudmdobsidian/Documents/my-vault. Display the modified content to the user for review; the original file will only be updated upon user confirmation. Only works within allowed directories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dryRun | No | Preview changes before real editing. | |
newText | Yes | ||
path | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"dryRun": {
"default": false,
"description": "Preview changes before real editing.",
"type": "boolean"
},
"newText": {
"type": "string"
},
"path": {
"type": "string"
}
},
"required": [
"path",
"newText"
],
"type": "object"
}