submit_file
Preview a local file for a file-upload exercise, then submit it only after explicit approval; checks the exercise file pattern and 8 MB size limit.
Instructions
Submit a local file to a file-upload exercise. Two-phase: without confirmationToken this returns a preview with the file name, size, and due date, and does not upload. Show the preview to the user and send the token only after they explicitly approve. The file must match the exercise file pattern and be at most 8 MB.
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>",
"filePath": "<filePath>"
},
"name": "submit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | ||
| exerciseId | Yes | ||
| confirmationToken | No |