Returns the currently active/focussed note.
The note is returned as Note, which gives you access to the entire contents of the note file, as well as just its body, frontmatter, and file path.
This action will return nothing if there is no active/focussed note, which can be tested for using a built-in "If" action with a "has any value" condition.
Parameters
Vault
The vault to work in.
Type: Vault reference
Return Value
Examples
Use a built-in If conditional ("If [Active Note]
has any value
") with the result of this here action to test if the active tab contains a note:
Related Links
- Search the Actions for Obsidian community forum for "Get Active Note"