apply_edit_preview
Apply a previewed edit to finalize changes to a note using the preview ID from a dry run.
Instructions
Apply a previously previewed edit. Pass the previewId returned by edit_note with dryRun: true. Previews expire after 5 minutes. Fails with a descriptive error if the target file changed since the preview was generated — in that case, regenerate the preview and try again.
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": {
"previewId": "<previewId>"
},
"name": "apply_edit_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| previewId | Yes | The previewId returned by `edit_note` with `dryRun: true`. |