skills/send-message-to-copilot/SKILL.md
# Send a Message to Microsoft 365 Copilot Enable conversational experiences powered by Microsoft 365 Copilot. Send user messages and receive AI-generated responses grounded in Microsoft 365 data and user context. Supports multi-turn conversations. ## API Details - **API**: Microsoft 365 Copilot API - **Method**: POST - **Path**: `/copilot/chat/completions` - **Operation ID**: `createChatCompletion` - **Tag**: Chat Completions - **OpenAPI**: [microsoft-copilot-api.yaml](../../openapi/microsoft
npx skillsauth add naftiko/microsoft-365-copilot-sandbox skills/send-message-to-copilotInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Enable conversational experiences powered by Microsoft 365 Copilot. Send user messages and receive AI-generated responses grounded in Microsoft 365 data and user context. Supports multi-turn conversations.
/copilot/chat/completionscreateChatCompletionMock server URL: http://localhost:8080/rest/microsoft-365-copilot-apis/1.0.0/copilot/chat/completions
Authorization: Bearer {access-token}Content-Type: application/jsonCopilot.Chat.ReadWrite{
"threadId": "thread-abc-123",
"messages": [
{
"role": "user",
"content": "What is our company's travel policy for international trips?"
}
]
}
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| threadId | string | No | Thread ID for multi-turn conversations |
| messages | array | Yes | Array of message objects with role and content |
| messages[].role | string | Yes | Role of the message sender (user) |
| messages[].content | string | Yes | The message content |
curl -X POST "http://localhost:8080/rest/microsoft-365-copilot-apis/1.0.0/copilot/chat/completions" \
-H "Authorization: Bearer {access-token}" \
-H "Content-Type: application/json" \
-d '{"threadId": "thread-abc-123", "messages": [{"role": "user", "content": "What is our company travel policy for international trips?"}]}'
{
"id": "chatcmpl-001-xyz",
"threadId": "thread-abc-123",
"created": "2025-09-10T16:00:00Z",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Based on your organization's travel policy, international travel requires VP-level approval at least two weeks in advance. The policy also requires booking through the approved travel portal. You can find the full policy in the Employee Handbook on SharePoint."
},
"finishReason": "stop"
}
],
"citations": [
{
"id": "cite-001",
"name": "Employee-Handbook-2025.pdf",
"webUrl": "https://contoso.sharepoint.com/sites/hr/Employee-Handbook-2025.pdf",
"snippet": "International travel requires VP-level approval submitted at least 14 calendar days prior to departure."
}
]
}
When the user wants to send a message to Microsoft 365 Copilot and get an AI-generated response grounded in organizational data, use this operation by making a POST request to /copilot/chat/completions. Provide the messages array with user content. Use a threadId for multi-turn conversations. Responses include citations referencing source documents.
development
# Renew or Update a Subscription Renew or update the configuration of an existing Copilot change notification subscription. ## API Details - **API**: Microsoft 365 Copilot API - **Method**: PATCH - **Path**: `/copilot/subscriptions/{subscriptionId}` - **Operation ID**: `updateCopilotSubscription` - **Tag**: Change Notifications - **OpenAPI**: [microsoft-copilot-api.yaml](../../openapi/microsoft-copilot-api.yaml) ## Sandbox Mock server URL: `http://localhost:8080/rest/microsoft-365-copilot-a
development
# Update a Package Update configuration or status of an app or agent deployed in Microsoft 365. ## API Details - **API**: Microsoft 365 Copilot API - **Method**: PATCH - **Path**: `/copilot/packages/{packageId}` - **Operation ID**: `updateCopilotPackage` - **Tag**: Packages - **OpenAPI**: [microsoft-copilot-api.yaml](../../openapi/microsoft-copilot-api.yaml) ## Sandbox Mock server URL: `http://localhost:8080/rest/microsoft-365-copilot-apis/1.0.0/copilot/packages/{packageId}` ## Required He
development
# Search OneDrive Content Using Natural Language Perform hybrid search (semantic and lexical) across OneDrive for work or school content using natural language queries. Results are returned with contextual understanding and intelligent ranking while maintaining security and compliance. ## API Details - **API**: Microsoft 365 Copilot API - **Method**: POST - **Path**: `/copilot/search/query` - **Operation ID**: `querySearchContent` - **Tag**: Content Search - **OpenAPI**: [microsoft-copilot-ap
development
# Retrieve Relevant Content from Microsoft 365 Retrieve contextually relevant information from Microsoft 365 content (documents, policies, knowledge bases) while respecting document access controls and sensitivity labels. Useful for building specialized assistants grounded in organizational data. ## API Details - **API**: Microsoft 365 Copilot API - **Method**: POST - **Path**: `/copilot/retrieval/query` - **Operation ID**: `queryRetrievalContent` - **Tag**: Content Retrieval - **OpenAPI**: [