execute_joplin_script
Run JavaScript with write access to Joplin notes: create, update, delete, or modify notes and notebooks. Supports top-level await.
Instructions
Execute JS with global 'joplin' object with write/destructive permissions. Top-level await. Return the result. Supports all read-only methods, search syntax, and call patterns defined in 'execute_joplin_readonly_script', plus the following modifying/destructive methods:
NOTES (write/destructive): createNote(title, body, notebookId?, tags?, isTodo?, todoDue?, todoCompleted?) updateNote(id, { title?, body?, parent_id?, is_todo?, todo_due?, todo_completed? }) appendToNote(id, content) prependToNote(id, content) deleteNote(id) moveNoteToNotebook(noteId, notebookId) editNote(id, oldString, newString, replaceAll?)
RULES:
createNote needs notebookId — call listNotebooks() first.
editNote returns pre-formatted output: after calling it, respond only "Done." — do not repeat, summarize, or reformat the output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | The JavaScript code to execute. |