Reference

Triggers

Reference for when actions run and how each trigger behaves.

The hook field controls when an action executes.

Hooks

HookRuns When
manualYou trigger the action from Obsidian
startupThe plugin loads during Obsidian startup
intervalA matching cron schedule fires
createFileA vault file is created
modifyFileA vault file is modified
deleteFileA vault file is deleted
renameFileA vault file is renamed

Manual

Use manual while building and testing an action. It is the most predictable trigger and the easiest place to debug behavior.

Manual actions are exposed as Obsidian commands after restart.

Startup

Use startup for actions that should run once when Obsidian opens, such as maintenance checks or environment setup.

Interval

interval actions require a cron expression.

* * * * *

This example runs once per minute.

Validate schedules with crontab.guru.

File Events

The file hooks respond to vault events and are useful for automations tied to note creation, edits, deletion, or renames.

Context Comes From Current App State

File hooks are triggered by vault events, but runtime variables still reflect the current active file and editor context when those are available. Do not assume the event file path is injected automatically.

Start Manual First

Build the action under manual first, confirm it behaves correctly, then move it to startup, interval, or a file hook.

On this page