classroom_create_assignment
Creates Google Classroom assignments, short-answer questions, or multiple-choice questions with optional attachments, due dates, and topics.
Instructions
Create an assignment, a short-answer question or a multiple-choice question (one question with choices) with optional attachments, due date, and topic.
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": {
"courseId": "<courseId>",
"title": "<title>"
},
"name": "classroom_create_assignment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | DRAFT | |
| title | Yes | ||
| choices | No | Answer options; required for MULTIPLE_CHOICE_QUESTION only | |
| dueDate | No | YYYY-MM-DD in the local time zone of this computer | |
| dueTime | No | HH:MM in local time (defaults to 23:59 if dueDate is set); converted to UTC automatically | |
| topicId | No | ||
| courseId | Yes | ||
| workType | No | ASSIGNMENT | |
| maxPoints | No | ||
| attachments | No | ||
| description | No | ||
| scheduledTime | No | RFC 3339 timestamp for scheduled publication |