Post Group Discussion
post_group_discussionPost a message to a Canvas group discussion after previewing and confirming it, so groupmates and instructors see the approved content.
Instructions
Post to a discussion inside a group workspace. Visible to your groupmates and instructors. [NEEDS CONFIRMATION: call it once for a preview and a confirm_token, show the preview to the user, and only if they say yes call it again with the same arguments, confirm=true and that confirm_token. Apps that can ask the user directly show a confirmation instead.]
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": {
"group_id": "<group_id>",
"topic_id": "<topic_id>",
"message": "<message>"
},
"name": "post_group_discussion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set to true together with confirm_token to carry out a request you already previewed. | |
| message | Yes | Message text. Plain text or simple HTML. | |
| group_id | Yes | Student group ID (numeric string). Get it from list_my_groups. | |
| topic_id | Yes | Discussion topic ID (numeric string). Get it from list_topics. | |
| confirm_token | No | The one-time token from the preview. Only use it after the user has said yes. |