Get Attachment
get_attachmentReads binary attachments from Obsidian vault, returning images inline, audio blocks, or base64 resources. Excludes text files; use dedicated tools for notes or canvases.
Instructions
Read an attachment file and return its bytes to the client. Images come back as image content blocks (rendered inline by Claude / Cursor), audio as audio blocks, everything else as a base64 resource block with a vault:// URI. Caps at 5 MB by default to keep token usage sane; raise via maxBytes up to 50 MB. The attachment must be inside the vault — markdown notes (.md), canvases (.canvas), and Bases (.base) are deliberately rejected so callers don't accidentally pull text-format files through this binary path; use get_note / read_canvas / read_base instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Vault-relative path to the attachment, e.g. 'assets/diagram.png'. | |
| maxBytes | No | Maximum file size to fetch in bytes (default: 5,242,880, hard cap: 52,428,800). |