action microsoft_list_mail_folders { label: "List mail folders" description: "List the mail folders in the signed-in user's mailbox." provider: microsoft method: GET path: "/v1.0/me/mailFolders" scopes: ["Mail.ReadWrite"] input: @json { { "type": "object", "additionalProperties": false, "properties": { "$top": { "type": "integer", "description": "Maximum number of folders to return." }, "$filter": { "type": "string", "description": "OData filter expression." } } } } output: @json { { "type": "object", "additionalProperties": true, "properties": { "value": { "type": "array", "items": { "type": "object", "additionalProperties": true, "properties": { "id": { "type": "string" }, "displayName": { "type": "string" }, "totalItemCount": { "type": "integer" }, "unreadItemCount": { "type": "integer" } } } }, "@odata.nextLink": { "type": "string" } } } } }