Skip to content
Actions for Obsidian icon Home Actions for Obsidian 2024.2.1 › Actions

Actions for Obsidian › Actions › Get Active File

Returns the path of the currently active/focussed file, whether it's a note, a canvas, an image etc.

This action will return nothing if there is no active/focussed file, 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

Text

Example

Use a built-in If conditional ("If [Active File] has any value") with the result of the Get Active File action to test if the active tab contains anything: