Google Classroom
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.
Setup in 3 Steps
| Step 1: Install | Step 2: Pair Account | Step 3: Connect Google Classroom |
|:---:|:---:|:---:|
|
|
| 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 |
How It Works
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ 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
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."
Quick Start
# 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"}'
Authentication
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.
Getting Connected
- Install the ClawLink plugin (see Install above).
- Pair the plugin with
clawlink_begin_pairingif it is not configured yet. - Open https://claw-link.dev/dashboard?add=google-classroom and connect Google Classroom.
- Call
clawlink_list_integrationsto verify the connection is active.
Connection Management
List Connections
clawlink_list_integrations
Response: Returns all connected integrations. Look for google-classroom in the list.
Verify Connection
clawlink_list_tools --integration google-classroom
Response: Returns the live tool catalog for Google Classroom.
Reconnect
If Google Classroom tools are missing or the connection shows an error:
- Direct the user to https://claw-link.dev/dashboard?add=google-classroom
- After they confirm, call
clawlink_list_integrationsto verify - Then call
clawlink_list_tools --integration google-classroom
Security & Permissions
- Access is scoped to Google Classroom courses the connected account can manage.
- Teachers can manage their own courses; students have read-only access to their enrolled courses.
- All write operations require explicit user confirmation. Before executing any coursework creation, announcement posting, or grade changes, confirm the intended effect with the user.
- Destructive actions (deleting coursework, removing students) are marked as high-impact and must be confirmed.
Tool Reference
Courses
| 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 |
Coursework
| 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 |
Students & Teachers
| 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 |
Submissions
| 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 |
Announcements
| 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 |
Code Examples
List all courses
clawlink_call_tool --tool "google_classroom_list_courses" \
--params '{}'
List students in a course
clawlink_call_tool --tool "google_classroom_list_students" \
--params '{
"course_id": "course-id"
}'
Create a new assignment
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"
}'
Post an announcement
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"
}'
Discovery Workflow
- Call
clawlink_list_integrationsto confirm Google Classroom is connected. - Call
clawlink_list_tools --integration google-classroomto see the live catalog. - Treat the returned list as the source of truth. Do not guess or assume what tools exist.
- If the user describes a capability but the exact tool is unclear, call
clawlink_search_toolswith a short query and integrationgoogle-classroom. - If no Google Classroom tools appear, direct the user to https://claw-link.dev/dashboard?add=google-classroom.
Execution Workflow
┌─────────────────────────────────────────────────────────────┐
│ 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 │
└─────────────────────────────────────────────────────────────┘
- For unfamiliar tools, ambiguous requests, or any write action, call
clawlink_describe_toolfirst. - Use the returned guidance, schema,
whenToUse,askBefore,safeDefaults,examples, andfollowupsto shape the call. - Prefer read, list, search, and get operations before writes when that reduces ambiguity.
- For writes or anything marked as requiring confirmation, call
clawlink_preview_toolfirst. - Execute with
clawlink_call_tool. Pass confirmation only after the preview matches the user's intent. - If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.
Notes
- Course IDs are unique strings (e.g.,
abc123xyz) assigned by Google Classroom. - Only teachers and administrators can create or modify coursework and announcements.
- Students can only view their own submissions and grades.
- Coursework
due_daterequires year, month, and day fields. - Deleting a course removes all associated coursework, submissions, and announcements.
Error Handling
| 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. |
Troubleshooting: Tools Not Visible
- Check that the ClawLink plugin is installed:
openclaw plugins list - If the plugin is installed but tools are missing, tell the user to send
/newas a standalone message to reload the catalog. - If a fresh chat does not help, run:
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json openclaw gateway restart - After restart, tell the user to send
/newagain and retry.
Troubleshooting: Invalid Tool Call
- Ensure the integration slug is exactly
google-classroom. - Use
clawlink_describe_toolto verify parameter names and types before calling. - For write operations, always call
clawlink_preview_toolfirst.
Resources
- Google Classroom API Reference
- Google Classroom API Overview
- ClawLink
- ClawLink Docs
- ClawLink Verification
Related Skills
- Google Calendar — For scheduling class sessions
- Google Drive — For file management in Classroom
Powered by ClawLink — an integration hub for OpenClaw

微信扫一扫