skills/retrieve-relevant-content/SKILL.md
# 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**: [
npx skillsauth add naftiko/microsoft-365-copilot-sandbox skills/retrieve-relevant-contentInstall 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.
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.
/copilot/retrieval/queryqueryRetrievalContentMock server URL: http://localhost:8080/rest/microsoft-365-copilot-apis/1.0.0/copilot/retrieval/query
Authorization: Bearer {access-token}Content-Type: application/jsonCopilot.Retrieval.Read{
"queryString": "remote work policy",
"from": 0,
"size": 10,
"queryType": "natural_language"
}
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| queryString | string | Yes | The natural language query to retrieve relevant content |
| from | integer | No | Offset for pagination |
| size | integer | No | Number of results to return |
| queryType | string | No | Type of query (e.g., natural_language) |
curl -X POST "http://localhost:8080/rest/microsoft-365-copilot-apis/1.0.0/copilot/retrieval/query" \
-H "Authorization: Bearer {access-token}" \
-H "Content-Type: application/json" \
-d '{"queryString": "remote work policy", "from": 0, "size": 10}'
{
"value": [
{
"id": "ret-result-001",
"relevanceScore": 0.94,
"content": {
"snippet": "The company remote work policy allows employees to work from home up to three days per week with manager approval.",
"sensitivityLabel": "Internal"
},
"resource": {
"type": "driveItem",
"id": "01ABCDEF23456789",
"name": "Remote-Work-Policy-2025.docx",
"webUrl": "https://contoso.sharepoint.com/sites/hr/Shared%20Documents/Remote-Work-Policy-2025.docx"
}
},
{
"id": "ret-result-002",
"relevanceScore": 0.87,
"content": {
"snippet": "Eligible employees must complete the remote work agreement form and submit it to HR before beginning any remote arrangement.",
"sensitivityLabel": "Internal"
},
"resource": {
"type": "driveItem",
"id": "01ABCDEF98765432",
"name": "HR-Onboarding-Guide.docx",
"webUrl": "https://contoso.sharepoint.com/sites/hr/Shared%20Documents/HR-Onboarding-Guide.docx"
}
}
],
"@odata.count": 2
}
When the user wants to retrieve or search for relevant organizational content, documents, policies, or knowledge base articles from Microsoft 365, use this operation by making a POST request to /copilot/retrieval/query. Provide a natural language query describing what content to find. Results respect document access controls and sensitivity labels.
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
# 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
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