add_attachment
Save a file into an Obsidian vault from a local path, base64 data, or URL, place it in the attachment folder, and optionally embed it in a note.
Instructions
Save a file into the vault — from a local path, base64 data, or a URL — into the vault's attachment folder (per its settings, relative to for_note), and optionally embed it in that note.
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": "add_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| name | No | File name (default: from source) | |
| embed | No | Append an embed ![[file]] to for_note (default true when for_note is set) | |
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. | |
| base64 | No | ||
| folder | No | Override destination folder | |
| heading | No | ||
| for_note | No | Note the attachment belongs to | |
| source_path | No | Absolute path of a file on this machine |