Anhang speichern
save_attachmentSave the first matching PDF attachment from an email found by subject keyword to a specified destination folder, filtering out non-PDF files like AGB, ads, XML, and images.
Instructions
Speichert den ersten passenden PDF-Anhang einer über den Betreff gefundenen Nachricht. Ein Anhang passt nur, wenn sein Name attKey enthält und auf .pdf endet (sortiert AGB, Werbe-PDFs, XML und Bilder aus). Der Zielordner wird angelegt.
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": {
"subjKey": "<subjKey>",
"attKey": "<attKey>",
"destPath": "<destPath>"
},
"name": "save_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attKey | Yes | Teilstring, der im Anhangnamen vorkommen muss | |
| subjKey | Yes | Teilstring, der im Betreff vorkommen muss | |
| destPath | Yes | Absoluter Zielpfad, z. B. /path/to/2026-04/2026-04-14 Anbieter Rechnung.pdf | |
| mailboxes | No | Zu durchsuchende Mailboxen. Vorgabe wie bei search_messages. |