read_attachment_tool
Read attachment files from an Obsidian vault, returning text as UTF-8 and binary as base64 with MIME type and encoding.
Instructions
Read an attachment file. data.content is a UTF-8 string for text files, or base64-encoded bytes for binary ones (images, PDFs) — data.mime_type and data.encoding say which.
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": "read_attachment_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| vault | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||