Read attachment(s)
get_attachmentRead a single attachment by ID or list a note's attachment metadata by note ID. Returns image blocks, text strings, base64 resources, or metadata only for large files.
Instructions
Read one attachment (attachmentId) or list a note's attachments (noteId, metadata only). Bodies come back by type: images as image blocks, text as a string (long text is truncated), other binaries as a base64 embedded resource. Images and binaries over 5 MB return metadata only.
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": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | No | List this note's attachments (metadata only: attachmentId, title, mime, contentLength). | |
| attachmentId | No | Fetch this one attachment (body included unless include_content=false). | |
| include_content | No | With attachmentId: include the body (default true). Pass false to check mime/size first. |