moodle_submit_assignment
Submit a saved assignment draft for grading after user confirmation. Show the assignment name and files first; only use this when the user clearly agrees.
Instructions
Hand in a saved draft for grading. Usually it cannot be undone without a teacher, so only call this after showing the user the assignment's name and files and getting a clear yes. Where the assignment has a submission statement, show it: accepting it is the user's own declaration.
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": {
"assignid": "<assignid>",
"confirm_name": "<confirm_name>"
},
"name": "moodle_submit_assignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site key or URL. Optional when only one site is logged in. | |
| assignid | Yes | assignid from moodle_assignments. | |
| confirm_name | Yes | The assignment's exact name, as the user confirmed it. | |
| accept_submission_statement | No | Set only after the user read and accepted the statement. |