Get Attachment
get_attachmentRead a vault-relative attachment and return its bytes, rendering images/audio inline and other files as base64 resources. Rejects notes, canvases, and Bases; set maxBytes to raise the 5 MB default.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "get_attachment"
}
}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). |