moodle_submit_assignment
Save or replace an assignment submission with online text and/or local files, keeping it as a draft or submitting it for grading once content is approved.
Instructions
Save the user's submission for an assignment: online text (HTML) and/or local files. This REPLACES the current submission's text/files. Leaves it as a draft unless submit_for_grading=true, which finalises it (and accepts the submission statement). Only call after the user has approved the exact content.
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": {
"assign_id": "<assign_id>"
},
"name": "moodle_submit_assignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assign_id | Yes | ||
| text_html | No | ||
| file_paths | No | ||
| submit_for_grading | No |