Attach lesson content
attach_lesson_contentAttaches visible, ready Trainn Library content. During an active initial build, pass its build id as approved_build_id when the persisted blueprint selected this exact item. Otherwise call inspect_library_content and pass selection_token. If content already exists, stop and ask the user before retrying with the returned replacement confirmation token and a new idempotency key.
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": {
"course_id": "<course_id>",
"lesson_id": "<lesson_id>",
"expected_revision": "<expected_revision>",
"idempotency_key": "<idempotency_key>",
"source": "<source>"
},
"name": "attach_lesson_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Accepts one of the documented argument shapes. | |
| course_id | Yes | ||
| lesson_id | Yes | ||
| idempotency_key | Yes | ||
| expected_revision | Yes | ||
| replacement_confirmation_token | No |