lesson_patch
Replace a unique substring in a stored lesson to correct or update its content while preserving the heading, summary, provenance, and timestamps.
Instructions
Replace one unique substring in a materialized lesson.
old_string must occur exactly once within the lesson's markdown
body. The operation preserves the lesson's heading, summary, provenance,
and timestamps, unlike a wholesale lesson_append replacement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| new_string | No | ||
| old_string | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |