moodle_init
Log in to any Moodle site and save a webservice token so courses can be downloaded for offline study, without storing your password.
Instructions
Log in to ANY Moodle site and save webservice token (password is not stored). Username format is school-specific — pass exactly what the user uses on the portal. Prefer token if available. Password goes only via env to the child process.
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": {
"url": "<url>"
},
"name": "moodle_init"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| force | No | ||
| token | No | ||
| out_dir | No | ./courses | |
| password | No | ||
| username | No | ||
| site_name | No | ||
| name_style | No | preserve | |
| course_dir_style | No | fullname_id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |