submit_text
Submit a text exercise for the signed-in student using a two-phase preview-and-confirm flow; preview shows exercise name, due date, and text length before explicit approval.
Instructions
Submit a text exercise for the signed-in student. Two-phase: without confirmationToken this returns a preview with the exercise name, due date, and text length, and does not submit. Show the preview to the user and send the token only after they explicitly approve. Refuses programming, modeling, and exam exercises, and refuses a closed submission window.
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": {
"exerciseId": "<exerciseId>",
"text": "<text>"
},
"name": "submit_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| language | No | ||
| exerciseId | Yes | ||
| confirmationToken | No |