mirror_course
Download all files from a Moodle course into a destination folder while preserving the course structure, with optional forum attachments and dry-run preview. Never overwrites existing files.
Instructions
Download every file of a course into dest_dir, mirroring Moodle's structure. Never overwrites.
Layout: `<NN section>/<file>` for single-file resources, `<NN section>/<activity>/<file>` otherwise
(folders, multi-file resources, assignment statements), `Forum: <name>/<discussion>/` for attachments.
Use dry_run=True first on large courses to see what would be downloaded and how much.
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": {
"course": "<course>",
"dest_dir": "<dest_dir>"
},
"name": "mirror_course"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course | Yes | ||
| dry_run | No | ||
| dest_dir | Yes | ||
| include_forums | No |