build_lesson_content
Creates EditorJS JSON content for a lesson from a provided specification including paragraphs, headers, lists, images, code, embeds, quiz references, and markdown.
Instructions
Build an EditorJS JSON content string for a lesson from a spec.
Args: content_spec: JSON string with optional keys: paragraphs, headers, lists, images, code, embeds, quiz_refs, markdown. Example: '{"paragraphs":["Hello world"],"headers":[{"text":"Intro","level":2}]}'
Returns: EditorJS JSON string ready for the content field of a Course 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": {
"content_spec": "<content_spec>"
},
"name": "build_lesson_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content_spec | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |