moodle_submit_assignment
Submits an assignment's online text and/or local files to Moodle for grading, with a confirmation step because submission is irreversible.
Instructions
Submit an assignment (online text and/or files). IRREVERSIBLE once submitted.
Before calling with confirm=true, show the user exactly what will be submitted and get an explicit "yes". If the assignment has an originality statement checkbox, this tool accepts it on the user's behalf.
Args: cmid: course-module id of the assignment. text: online text to submit (optional). files: local file paths to upload (optional). submit_for_grading: if true, also post the final "Submit assignment" step. If false, stop after saving — but note that assignments without drafts submit as soon as they are saved. confirm: must be true; safety switch against accidental submissions.
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": {
"cmid": "<cmid>"
},
"name": "moodle_submit_assignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmid | Yes | ||
| text | No | ||
| files | No | ||
| confirm | No | ||
| submit_for_grading | No |