create_thread
Create a new thread in a course by providing course ID, title, and Ed XML content. Optionally set type, category, subcategory, privacy, and anonymity.
Instructions
Create a new thread in a course. Wrap content in Ed XML: Your text here. Use list_categories to find valid category names.
Args: course_id: The course ID (use list_courses to find it). title: Thread title. content: Thread body in Ed XML format. type: "post" for a discussion, "question" for a question that can be answered, or "announcement" for a course-wide notice. category: Category name (use list_categories to see options). subcategory: Subcategory name (optional). is_private: If true, only staff can see the thread. is_anonymous: If true, the author's name is hidden.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | post | |
| title | Yes | ||
| content | Yes | ||
| category | No | ||
| course_id | Yes | ||
| is_private | No | ||
| subcategory | No | ||
| is_anonymous | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |