Add Content Item
cl_add_contentInsert a new content item (reading passage or audio) into the content database during development, specifying type, title, difficulty, duration, topic, and source attribution.
Instructions
Inserts a new content item into the content_items table. Use during dev sessions to seed reading passages, audio content, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Content type | |
| title | Yes | Content title | |
| topic | Yes | Content topic | |
| textUrl | No | URL to text resource (for text type) | |
| audioUrl | No | URL to audio file (for audio type) | |
| transcript | No | Full transcript text | |
| textContent | No | Text body (for text type) | |
| culturalNotes | No | Cultural or contextual notes | |
| difficultyLevel | Yes | Difficulty level (1.0–9.5) | |
| durationSeconds | Yes | Duration in seconds | |
| languageFeatures | No | Structured language features (JSONB) | |
| transcriptSource | No | How the transcript was created | |
| sourceAttribution | Yes | Source/license info | |
| transcriptLanguage | No | Transcript language code (default: "ro") |