send_channel_message
Send formatted messages to Microsoft Teams channels, including text, markdown, mentions, and importance levels, enabling efficient team communication and collaboration.
Instructions
Send a message to a specific channel in a Microsoft Team. Supports text and markdown formatting, mentions, and importance levels.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
channelId | Yes | Channel ID | |
format | No | Message format (text or markdown) | |
imageContentType | No | MIME type of the image (e.g., 'image/jpeg', 'image/png') | |
imageData | No | Base64 encoded image data to attach | |
imageFileName | No | Name for the attached image file | |
imageUrl | No | URL of an image to attach to the message | |
importance | No | Message importance | |
mentions | No | Array of @mentions to include in the message | |
message | Yes | Message content | |
teamId | Yes | Team ID |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"channelId": {
"description": "Channel ID",
"type": "string"
},
"format": {
"description": "Message format (text or markdown)",
"enum": [
"text",
"markdown"
],
"type": "string"
},
"imageContentType": {
"description": "MIME type of the image (e.g., 'image/jpeg', 'image/png')",
"type": "string"
},
"imageData": {
"description": "Base64 encoded image data to attach",
"type": "string"
},
"imageFileName": {
"description": "Name for the attached image file",
"type": "string"
},
"imageUrl": {
"description": "URL of an image to attach to the message",
"type": "string"
},
"importance": {
"description": "Message importance",
"enum": [
"normal",
"high",
"urgent"
],
"type": "string"
},
"mentions": {
"description": "Array of @mentions to include in the message",
"items": {
"additionalProperties": false,
"properties": {
"mention": {
"description": "The @mention text (e.g., 'john.doe' or 'john.doe@company.com')",
"type": "string"
},
"userId": {
"description": "Azure AD User ID of the mentioned user",
"type": "string"
}
},
"required": [
"mention",
"userId"
],
"type": "object"
},
"type": "array"
},
"message": {
"description": "Message content",
"type": "string"
},
"teamId": {
"description": "Team ID",
"type": "string"
}
},
"required": [
"teamId",
"channelId",
"message"
],
"type": "object"
}