Check who a teaching share would reach
preview_share_recipientRead-only, for teachers: the check before share_teaching_course. It looks up who an email address belongs to and whether the course is ready, and changes or sends nothing. recipient.kind 'existing': the address belongs to a saved student (forThePerson.recipientName holds the saved name). 'new': the address is new to the teacher, and a preview with recipientName (the student's name from the teacher) gives the token. 'ambiguous' or 'inactive': it cannot be shared; the teacher sorts it out in soclever. previewToken ties a share to exactly this preview (this course, this address, this saved student or this new name) for 5 minutes, and share_teaching_course accepts it with the same courseId, recipientEmail, and studentId (existing) or recipientName (new). The share is meant to follow the teacher's yes to the name and address shown here; after 5 minutes, or any wait, a fresh preview gives a new token. readiness says what the student would see: how many lessons are published and which are not visible yet. Teaching lesson counts: published is what a new student sees now. unpublished lessons are "taken down by the teacher"; held and notPublished lessons are "held for review / not published yet", which is different from taken down. In notYetAvailable, lessons_unpublished means taken down by the teacher; lessons_held and lessons_not_published mean held for review / not published yet.
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>",
"recipientEmail": "<recipientEmail>"
},
"name": "preview_share_recipient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| courseId | Yes | The teaching course's id (from list_courses). | |
| recipientName | No | A new student's name, as the teacher gave it (a preview with it gives the token once the address is new). | |
| recipientEmail | Yes | The student's email address exactly as the person gave it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No |