get_attachment
Reads an Outlook attachment stored locally, extracting readable text, returning its file path, or opening it; reports when the file is missing and preserves orphaned attachment text.
Instructions
Read an attachment from local storage. Never downloads from a server: if the file is not on this Mac, the result says so. Ids like 'orphan:12' are files that no archived message owns: their text stays available even after Outlook deletes the file.
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": {
"attachment_id": "<attachment_id>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | text: extract readable text (PDF, Word, Excel, plain text, CSV, calendar); path: return a local file path; open: open the file in its default Mac app | text |
| offset | No | Text character offset, for paging long text | |
| max_chars | No | ||
| attachment_id | Yes | attachment_id from list_attachments, or an id like 'orphan:12' from search_files |