read_attachment
Open vault attachments to view images, read text files, or retrieve metadata and base64 data for other file types.
Instructions
Open an attachment: images come back as an image you can see, text files as text, other files as metadata (or base64 with as_base64).
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": {
"file": "<file>"
},
"name": "read_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| vault | No | Vault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian. | |
| as_base64 | No | ||
| max_bytes | No | Default 8 MB |