remove_submission
Withdraw/clear this account's own submission for an assignment. IRREVERSIBLE and DESTRUCTIVE once dry_run=False -- this discards already-submitted work (files/text), not a draft.
KNOWN ISSUE: live testing found dry_run=False currently fails with
an "invalid parameter" error from PLATO every time (the real
required parameter shape wasn't determined -- see
remove_submission_for's docstring). dry_run=True (preview) works
and is safe to call. Do not rely on dry_run=False actually working
until this is fixed.
Call with dry_run=True (default) first, show the preview to the user,
and only call again with dry_run=False after they explicitly confirm.
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_id": "<course_id>",
"assignment_id": "<assignment_id>"
},
"name": "remove_submission"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If True (default), only preview the removal without doing it. Call again with dry_run=False (same parameters) to actually remove it. | |
| course_id | Yes | PLATO/Moodle numeric course id, e.g. from list_courses. | |
| assignment_id | Yes | Assignment id, e.g. from list_assignments. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | Yes | ||
| message | Yes | ||
| preview | Yes | ||
| executed | Yes |