← 返回
未分类

Google Classroom

Manage Google Classroom courses, coursework, students, teachers, submissions, and announcements via the Google Classroom API. Use this skill when users want...
通过 Google Classroom API 管理课堂课程、作业、学生、教师、提交和公告,适用于用户需要...
hith3sh hith3sh 来源
未分类 clawhub v1.0.6 2 版本 100000 Key: 无需
★ 5
Stars
📥 1,484
下载
💾 1
安装
2
版本
#latest

概述

Google Classroom

!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: InstallStep 2: Pair AccountStep 3: Connect Google Classroom
:---::---::---:
!Install!PairApp-specific connection GIF coming soon
Run the install command in OpenClawSign in and approve the deviceOpen 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

  1. Install the ClawLink plugin (see Install above).
  2. Pair the plugin with clawlink_begin_pairing if it is not configured yet.
  3. Open https://claw-link.dev/dashboard?add=google-classroom and connect Google Classroom.
  4. Call clawlink_list_integrations to 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:

  1. Direct the user to https://claw-link.dev/dashboard?add=google-classroom
  2. After they confirm, call clawlink_list_integrations to verify
  3. 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

ToolDescriptionMode
-------------------------
google_classroom_list_coursesList courses the user is enrolled in or teachesRead
google_classroom_get_courseGet course detailsRead
google_classroom_create_courseCreate a new courseWrite
google_classroom_update_courseUpdate course name, description, or sectionWrite
google_classroom_delete_courseDelete a courseWrite

Coursework

ToolDescriptionMode
-------------------------
google_classroom_list_course_workList all coursework in a courseRead
google_classroom_get_course_workGet specific coursework detailsRead
google_classroom_create_course_workCreate new assignment or questionWrite
google_classroom_update_course_workUpdate an existing assignmentWrite
google_classroom_delete_course_workDelete courseworkWrite

Students & Teachers

ToolDescriptionMode
-------------------------
google_classroom_list_studentsList students enrolled in a courseRead
google_classroom_list_teachersList teachers of a courseRead
google_classroom_add_studentAdd a student to a courseWrite
google_classroom_add_teacherAdd a teacher to a courseWrite
google_classroom_remove_studentRemove a student from a courseWrite
google_classroom_remove_teacherRemove a teacher from a courseWrite

Submissions

ToolDescriptionMode
-------------------------
google_classroom_list_submissionsList student submissions for courseworkRead
google_classroom_get_submissionGet submission details and gradeRead
google_classroom_patch_submissionUpdate submission grade or statusWrite

Announcements

ToolDescriptionMode
-------------------------
google_classroom_list_announcementsList announcements in a courseRead
google_classroom_create_announcementPost an announcement to a courseWrite
google_classroom_delete_announcementDelete an announcementWrite

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

  1. Call clawlink_list_integrations to confirm Google Classroom is connected.
  2. Call clawlink_list_tools --integration google-classroom to see the live catalog.
  3. Treat the returned list as the source of truth. Do not guess or assume what tools exist.
  4. If the user describes a capability but the exact tool is unclear, call clawlink_search_tools with a short query and integration google-classroom.
  5. 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                                     │
└─────────────────────────────────────────────────────────────┘
  1. For unfamiliar tools, ambiguous requests, or any write action, call clawlink_describe_tool first.
  2. Use the returned guidance, schema, whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.
  3. Prefer read, list, search, and get operations before writes when that reduces ambiguity.
  4. For writes or anything marked as requiring confirmation, call clawlink_preview_tool first.
  5. Execute with clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.
  6. 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_date requires year, month, and day fields.
  • Deleting a course removes all associated coursework, submissions, and announcements.

Error Handling

Status / ErrorMeaning
-------------------------
Tool not foundThe tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration google-classroom.
Missing connectionGoogle Classroom is not connected. Direct the user to https://claw-link.dev/dashboard?add=google-classroom.
404 Not FoundCourse, student, or coursework does not exist. Verify the IDs.
403 ForbiddenThe connected account is not a teacher or admin for this course.
Write rejectedUser did not confirm a write action. Always confirm before executing writes.

Troubleshooting: Tools Not Visible

  1. Check that the ClawLink plugin is installed:

```bash

openclaw plugins list

```

  1. If the plugin is installed but tools are missing, tell the user to send /new as a standalone message to reload the catalog.
  2. If a fresh chat does not help, run:

```bash

openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json

openclaw gateway restart

```

  1. After restart, tell the user to send /new again and retry.

Troubleshooting: Invalid Tool Call

  1. Ensure the integration slug is exactly google-classroom.
  2. Use clawlink_describe_tool to verify parameter names and types before calling.
  3. For write operations, always call clawlink_preview_tool first.

Resources

Related Skills


Powered by ClawLink — an integration hub for OpenClaw

!ClawLink Logo

版本历史

共 2 个版本

  • v1.0.6 当前
    2026-06-09 16:13 安全 安全
  • v0.1.0
    2026-05-21 13:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

education

Thinking Partner

itsflow
通过提问探索复杂问题的协作思考伙伴
★ 51 📥 10,093
dev-programming

GitHub

hith3sh
通过 GitHub REST 和GraphQL API 与仓库、议题、拉取请求、提交、分支、发布和工作流进行交互。在需要时使用此技能。
★ 33 📥 2,308
education

Interview Simulator

wscats
模拟各类职位和经验水平的面试,提供定制化的技术、行为及案例问题,并给予详细反馈与评分。
★ 26 📥 22,148