Урок целиком
get_lessonДокумент урока в формате TipTap/ProseMirror (document_format: "v2"):
{"type": "doc", "content": [узлы]}. Узлы: paragraph, heading
(attrs.level 2–4), bulletList/orderedList/taskList из
listItem/taskItem, blockquote, codeBlock (attrs.language),
table, image (attrs.attachmentId), video (attrs.provider,
attrs.videoId), file, test (attrs.testId), assignment,
survey, callout (attrs.style), details (спойлер), columns,
section, horizontalRule. Текст — узлы text с marks (bold,
italic, link …). Ответ годится как образец для create_lesson.
Урок, ещё не открытый в редакторе, отдаётся тоже в этом формате.
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": {
"lesson_id": "<lesson_id>"
},
"name": "get_lesson"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lesson_id | Yes |