Access Google Classroom via the Google Classroom API with OAuth authentication. Manage courses, coursework, students, teachers, submissions, and announcements.
This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Google Classroom API access yourself.
| Step 1: Install | Step 2: Pair Account | Step 3: Connect Google Classroom |
|---|---|---|
| :---: | :---: | :---: |
| !Install | !Pair | App-specific connection GIF coming soon |
| Run the install command in OpenClaw | Sign in and approve the device | Open the dashboard and connect Google Classroom |
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ Google Classroom │
│ (User Chat) │ │ (OAuth) │ │ API (REST) │
└─────────────────┘ └──────────────┘ └──────────────────┘
│ │ │
│ 1. Install Plugin │ │
│ 2. Pair Device │ │
│ 3. Connect Google Classroom │
│ │ 4. Secure Token │
│ │ 5. Proxy Requests │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ SKILL │ │ Dashboard│ │Classroom │
│ File │ │ Auth │ │ Courses │
└──────────┘ └──────────┘ └──────────┘
Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Google Classroom again."
# List courses
clawlink_call_tool --tool "google_classroom_list_courses" --params '{}'
# Get course details
clawlink_call_tool --tool "google_classroom_get_course" --params '{"id": "course-id"}'
# List students in a course
clawlink_call_tool --tool "google_classroom_list_students" --params '{"course_id": "course-id"}'
# List coursework
clawlink_call_tool --tool "google_classroom_list_course_work" --params '{"course_id": "course-id"}'
All Google Classroom tool calls are authenticated automatically by ClawLink using the user's connected Google account.
No API key is required in chat. ClawLink stores the OAuth token securely and injects it into every Google Classroom API request on the user's behalf.
clawlink_begin_pairing if it is not configured yet.clawlink_list_integrations to verify the connection is active.clawlink_list_integrations
Response: Returns all connected integrations. Look for google-classroom in the list.
clawlink_list_tools --integration google-classroom
Response: Returns the live tool catalog for Google Classroom.
If Google Classroom tools are missing or the connection shows an error:
clawlink_list_integrations to verifyclawlink_list_tools --integration google-classroom| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_classroom_list_courses | List courses the user is enrolled in or teaches | Read |
google_classroom_get_course | Get course details | Read |
google_classroom_create_course | Create a new course | Write |
google_classroom_update_course | Update course name, description, or section | Write |
google_classroom_delete_course | Delete a course | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_classroom_list_course_work | List all coursework in a course | Read |
google_classroom_get_course_work | Get specific coursework details | Read |
google_classroom_create_course_work | Create new assignment or question | Write |
google_classroom_update_course_work | Update an existing assignment | Write |
google_classroom_delete_course_work | Delete coursework | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_classroom_list_students | List students enrolled in a course | Read |
google_classroom_list_teachers | List teachers of a course | Read |
google_classroom_add_student | Add a student to a course | Write |
google_classroom_add_teacher | Add a teacher to a course | Write |
google_classroom_remove_student | Remove a student from a course | Write |
google_classroom_remove_teacher | Remove a teacher from a course | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_classroom_list_submissions | List student submissions for coursework | Read |
google_classroom_get_submission | Get submission details and grade | Read |
google_classroom_patch_submission | Update submission grade or status | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
google_classroom_list_announcements | List announcements in a course | Read |
google_classroom_create_announcement | Post an announcement to a course | Write |
google_classroom_delete_announcement | Delete an announcement | Write |
clawlink_call_tool --tool "google_classroom_list_courses" \
--params '{}'
clawlink_call_tool --tool "google_classroom_list_students" \
--params '{
"course_id": "course-id"
}'
clawlink_call_tool --tool "google_classroom_create_course_work" \
--params '{
"course_id": "course-id",
"title": "Week 5 Homework",
"description": "Complete exercises 1-10 from Chapter 5",
"due_date": {
"year": 2025,
"month": 2,
"day": 15
},
"work_type": "ASSIGNMENT",
"state": "PUBLISHED"
}'
clawlink_call_tool --tool "google_classroom_create_announcement" \
--params '{
"course_id": "course-id",
"text": "Reminder: The midterm exam is scheduled for next Tuesday. Please review Chapters 1-8.",
"state": "PUBLISHED"
}'
clawlink_list_integrations to confirm Google Classroom is connected.clawlink_list_tools --integration google-classroom to see the live catalog.clawlink_search_tools with a short query and integration google-classroom.┌─────────────────────────────────────────────────────────────┐
│ READ OPERATIONS (Safe) │
│ list → get → search → describe → call │
│ │
│ Example: List courses → Get course → List students │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WRITE OPERATIONS (Require Confirmation) │
│ list → get → describe → preview → confirm → call │
│ │
│ Example: Preview announcement → User confirms │
│ → Execute post │
└─────────────────────────────────────────────────────────────┘
clawlink_describe_tool first.whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.clawlink_preview_tool first.clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.abc123xyz) assigned by Google Classroom.due_date requires year, month, and day fields.| Status / Error | Meaning |
|---|---|
| ---------------- | --------- |
| Tool not found | The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration google-classroom. |
| Missing connection | Google Classroom is not connected. Direct the user to https://claw-link.dev/dashboard?add=google-classroom. |
404 Not Found | Course, student, or coursework does not exist. Verify the IDs. |
403 Forbidden | The connected account is not a teacher or admin for this course. |
| Write rejected | User did not confirm a write action. Always confirm before executing writes. |
```bash
openclaw plugins list
```
/new as a standalone message to reload the catalog.```bash
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
```
/new again and retry.google-classroom.clawlink_describe_tool to verify parameter names and types before calling.clawlink_preview_tool first.Powered by ClawLink — an integration hub for OpenClaw
共 2 个版本