edubase_post_exam_results_export
Generate a single-use download link that expires in one hour to export visible exam results as CSV or XLSX, with columns and filters controlled by exam settings.
Instructions
Generate a download link for the results of an exam. The generated link is not authenticated, so it can be handed over to any service, but it can only be used once and it expires in an hour. Only those examinees are exported that are visible for the current user, and the exported columns are controlled by the export settings of the exam (see edubase_get_exam_settings). Exporting the results needs reporting permission for the exam.
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": {
"exam": "<exam>"
},
"name": "edubase_post_exam_results_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exam | Yes | exam identification string | |
| sort | No | ordering of the examinees in the exported file (default: the same order they are listed in on the users page of the exam, name: by the name of the examinees), default: the export_sort setting of the exam | |
| round | No | export the results of a previous round instead of the current one, only available when the exam is configured to keep the results of its previous rounds, has to be the number of an already closed round (see edubase_get_exam_round) | |
| format | No | format of the exported file (csv: semicolon separated values, xlsx: Excel 2007+ workbook), default: the export_format setting of the exam | |
| preset | No | content of the exported file (default: the examinees with their results, answers: the answers only, without the examinees), the answers preset is only available for anonymous surveys (default: default) | |
| filters | No | only export the examinees matching the given user data, keyed by the label (or hash) of a custom user data field with filtering configured or the users list filter enabled (see edubase_get_exam_fields), the value is a filterable option of the field or a list of them (listed by edubase_get_exam_report), number, from-to, date and datetime fields with the users list filter can use a range instead (min and/or max, numbers or YYYY-MM-DD dates), the examinees have to match any value of a field and all fields, cannot be combined with round as the results of a previous round cannot be filtered | |
| language | No | language of the exported file (default: the language of the user) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| exam | Yes | ||
| valid | Yes | ||
| format | Yes |