download_homepage_image
Download images from Smartschool homepage blocks to a local folder using the image URLs returned by get_homepage_blocks.
Instructions
Download an image embedded in a homepage block.
Use the URLs returned in get_homepage_blocks()["blocks"][*]["images"].
Only assets on the configured Smartschool host are accepted.
Args: image_url: Image URL from get_homepage_blocks. save_path: Optional directory to save into (default: ~/Downloads/smartschool/).
Returns: Dictionary with the saved file path and bytes written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes | ||
| save_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||