upload_attachment
Upload an image, PDF, audio, or video from a local path into an Obsidian vault, then embed it in a note with ![[filename]] syntax.
Instructions
Upload an attachment (image, PDF, audio, video) to the vault from a local file path. After uploading, embed it in a note using ![[filename]] syntax.
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": {
"localPath": "<localPath>",
"vaultPath": "<vaultPath>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Absolute path to the file on your local filesystem (e.g. '/Users/me/photo.png') | |
| vaultPath | Yes | Destination path in the vault (e.g. 'attachments/photo.png') |