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.
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>",
"title": "<title>",
"content": "<content>"
},
"name": "create_thread"
}
}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 |