action microsoft_search_drive { label: "Search drive" description: "Search the signed-in user's OneDrive by file name or content." provider: microsoft method: GET path: "/v1.0/me/drive/root/search(q='{query}')" scopes: ["Files.ReadWrite"] input: @json { { "type": "object", "required": ["query"], "additionalProperties": false, "properties": { "query": { "type": "string", "description": "Search text. Avoid single quotes." }, "$top": { "type": "integer", "description": "Maximum number of results to return." } } } } output: @json { { "type": "object", "additionalProperties": true, "properties": { "value": { "type": "array", "items": { "type": "object", "additionalProperties": true, "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "size": { "type": "integer" }, "webUrl": { "type": "string" }, "parentReference": { "type": "object" } } } }, "@odata.nextLink": { "type": "string" } } } } }