Insert Path for Agents

approved

by Dominik Bach

Insert the absolute filesystem path of the active note at the cursor so AI agents can open and read that file verbatim. Does not use the clipboard. - This plugin has not been manually reviewed by Obsidian staff.

17 downloadsUpdated 8d agoMIT

Insert Path for Agents

Insert the absolute filesystem path of the active note at the cursor. Use it in AI prompts so agents, LLMs, and subagents can open that Markdown file and read what you wrote verbatim.

The clipboard is not used. The path is typed into the note.

Why

Prompt files live in a vault. When you hand a task to Grok, Claude, Cursor, Codex, or another agent, the model needs a real path, not a paraphrase. Bind a hotkey, press it in the prompt note, and the system path is in the text.

Search terms this covers: insert file path, absolute path, current note path, AI agent context, LLM prompt path, subagent verbatim prompt, no clipboard.

Use

  1. Enable the plugin.
  2. Open Settings → Hotkeys.
  3. Search for Insert absolute path of current note.
  4. Bind a key.
  5. In a prompt note, press that key.

You get a path like:

/Users/you/vault/prompts/run.md

Command palette (editor focused): Insert Path for Agents: Insert absolute path of current note.

Desktop only. Uses FileSystemAdapter.getFullPath.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.