get_attachment
Downloads one attachment from a Skolemelding message and returns it as an image, extracted PDF text, or a saved file path when large.
Instructions
Download one attachment of a message and return it (image, PDF with extracted text, or a saved file path when large). Get message_id and thread_id from list_messages and attachment_id from get_message. Opening a message marks it as read in the Skolemelding app. child is required when several children are linked.
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": {
"message_id": "<message_id>",
"thread_id": "<thread_id>",
"attachment_id": "<attachment_id>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| child | No | ||
| thread_id | Yes | ||
| message_id | Yes | ||
| attachment_id | Yes |