get_active_file
Retrieves the currently active file in an Obsidian vault, allowing integrations to know which note is open. Optionally specify a vault ID.
Instructions
Get the currently active file in Obsidian.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_active_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vaultId | No | Optional vault ID (defaults to configured default vault). |