Skip to main content
Glama
sunub
by sunub

organize_attachments

Organize attachments by scanning markdown files for linked images, moving them to a dedicated folder named after the document's title, and updating links automatically.

Instructions

Scans a specified markdown file for linked images (or other attachments), moves them to a dedicated folder named after the document's title, and updates the links within the markdown file automatically.

Use Cases:

  • When a post is finalized and you want to clean up all associated images into a neat folder.

  • To automatically organize attachments for better vault management.

Example Workflow:

  1. Specify 'my-awesome-post.md' as the fileName.

  2. The tool finds the 'title' property in the frontmatter (e.g., "My Awesome Post").

  3. It finds all image links like ![[my-image.png]].

  4. It creates a folder at '{vault}/images/My Awesome Post/'.

  5. It moves 'my-image.png' into that new folder.

  6. It updates the link in the markdown file to ![[images/My Awesome Post/my-image.png]].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYesA keyword to search for the markdown file within the vault.
destinationNoThe base folder to move attachments into. Defaults to "images".images
useTitleAsFolderNameNoIf true, creates a subfolder named after the document title. Defaults to true.
quietNoIf true, returns a minimal success message.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sunub/obsidian-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server