Preview publishing an assignment
prepare_publish_assignmentCreates an owner-bound confirmation preview for publishing a draft or republishing with new dates: classes, openings, due dates in the teacher's time zone, result visibility and student-facing changes. Publication remains unchanged. Execution requires approval of this specific preview. With no classes, anyoneWithLink must be true for a public link.
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": {
"assignmentId": "<assignmentId>",
"classes": "<classes>",
"anyoneWithLink": "<anyoneWithLink>",
"timeZone": "<timeZone>"
},
"name": "prepare_publish_assignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dueAt | No | Due time for the anyone-with-link publish. | |
| classes | Yes | ||
| timeZone | Yes | The teacher's IANA time zone, e.g. America/Chicago, so the preview shows their local times. | America/New_York |
| assignmentId | Yes | Assignment id from list_coursework. | |
| resultRelease | No | Defaults to the draft's setting. | |
| anyoneWithLink | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Readable tool result text for clients that consume structured output. | |
| status | Yes | Operation status: completed, pending, partial, failed, unavailable, or a domain-specific outcome. |