skills/search-onedrive-content/SKILL.md
# 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
npx skillsauth add naftiko/microsoft-365-copilot-sandbox skills/search-onedrive-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.
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.
/copilot/search/queryquerySearchContentMock server URL: http://localhost:8080/rest/microsoft-365-copilot-apis/1.0.0/copilot/search/query
Authorization: Bearer {access-token}Content-Type: application/jsonCopilot.Search.Read{
"queryString": "budget presentation Q3",
"from": 0,
"size": 10
}
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| queryString | string | Yes | Natural language search query |
| from | integer | No | Offset for pagination |
| size | integer | No | Number of results to return |
curl -X POST "http://localhost:8080/rest/microsoft-365-copilot-apis/1.0.0/copilot/search/query" \
-H "Authorization: Bearer {access-token}" \
-H "Content-Type: application/json" \
-d '{"queryString": "budget presentation Q3", "from": 0, "size": 10}'
{
"value": [
{
"hitId": "hit-001",
"rank": 1,
"summary": "Q3 2025 budget presentation covering departmental allocations and projected spending through year end.",
"resource": {
"@odata.type": "#microsoft.graph.driveItem",
"id": "01XYZABC12345678",
"name": "Q3-2025-Budget-Presentation.pptx",
"webUrl": "https://contoso-my.sharepoint.com/personal/jdoe/Documents/Q3-2025-Budget-Presentation.pptx",
"lastModifiedDateTime": "2025-08-15T14:30:00Z",
"createdBy": {
"user": {
"displayName": "Jane Doe",
"id": "user-abc-123"
}
}
}
},
{
"hitId": "hit-002",
"rank": 2,
"summary": "Annual budget planning template with quarterly breakdown and variance tracking worksheets.",
"resource": {
"@odata.type": "#microsoft.graph.driveItem",
"id": "01XYZABC87654321",
"name": "Annual-Budget-Template.xlsx",
"webUrl": "https://contoso-my.sharepoint.com/personal/jsmith/Documents/Annual-Budget-Template.xlsx",
"lastModifiedDateTime": "2025-07-01T09:00:00Z",
"createdBy": {
"user": {
"displayName": "John Smith",
"id": "user-def-456"
}
}
}
}
],
"@odata.count": 2,
"moreResultsAvailable": true
}
When the user wants to search for files in OneDrive using natural language, use this operation by making a POST request to /copilot/search/query. This performs hybrid semantic and lexical search with intelligent ranking. Results include file metadata, summaries, and links.
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
# 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**: [