action microsoft_list_drive_root_items { label: "List drive root items" description: "List files and folders in the root of any drive by drive id, such as a SharePoint document library." provider: microsoft method: GET path: "/v1.0/drives/{drive_id}/root/children" scopes: ["Sites.Read.All"] input: @json { { "type": "object", "required": ["drive_id"], "additionalProperties": false, "properties": { "drive_id": { "type": "string", "description": "Drive id, e.g. from list site drives." }, "$top": { "type": "integer", "description": "Maximum number of items to return." }, "$orderby": { "type": "string", "description": "Sort order, e.g. name asc." } } } } 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" }, "folder": { "type": "object" }, "file": { "type": "object" }, "webUrl": { "type": "string" } } } }, "@odata.nextLink": { "type": "string" } } } } }