download_material
Fetch files from GUAP portal links, Google Drive shares, or direct URLs. Automatically authenticates internal links, saves to Downloads/guap-materials, and returns file path, size, and type.
Instructions
Download a material file by URL. Works for three kinds of URLs: (1) pro.guap.ru internal links — authenticated automatically via the session cookie; (2) Google Drive share links (drive.google.com/file/d/...) — handles the confirmation page; (3) any other direct download URL (PDF, ZIP, etc.). The file is saved to ~/Downloads/guap-materials/ by default. Returns the local file path, filename, size in bytes, and content type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| save_dir | No |