Get bulletin attachment
wilma_get_news_attachmentFetches and reads files linked from school bulletins, such as PDF letters or menus, and optionally saves them to Downloads; returns a URL instead when the link is a web page.
Instructions
Fetch a file linked from a bulletin (e.g. a PDF letter or menu) so you can read it. Returns the file content when it is a file, or 'not_a_file' with the URL when the link is a web page. Set save=true to also save it to the user's Downloads folder.
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": {
"news_id": "<news_id>",
"resource_id": "<resource_id>"
},
"name": "wilma_get_news_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Also save the file to ~/Downloads/WilmAI. | |
| news_id | Yes | ||
| student | No | Child's name or student number. Omit to include every child on the account. | |
| resource_id | Yes | Resource id from wilma_read_news, e.g. resource-1 (or just 1). |