1,393 official scripts
Tested scripts for the sites people automate most, ready for your agent to run.
List Outlook.com mail folders
List the signed-in Outlook.com (outlook.live.com) account's mail folders — Inbox, Junk Email, Drafts, Sent Items, Deleted Items, Archive, Conversation History, Notes and any custom folders — from the navigation pane's folder tree. Returns each folder's name and whether it's currently selected.
Read an Outlook.com email
Read one Outlook.com (outlook.live.com) message's details by its id (as returned by list_emails): subject, sender, recipient, date shown on the message, and body text. Opens the message in the given folder's reading pane, so an unread message becomes read. An unknown folder or an id that is not in the folder fails with an error saying so. A signed-out browser fails with a signed-out error asking to sign in to outlook.live.com.
List Outlook.com emails in a folder
List messages in an Outlook.com (outlook.live.com) mail folder (default Inbox). Returns each message's id (the join key for get_email), sender display name, subject, date label as shown in the list, and preview snippet, in the order the list shows them.
List calendar events (Outlook)
List events from the signed-in Outlook consumer calendar for a given week.
Mark an Outlook.com email read or unread
Mark one Outlook.com (outlook.live.com) message as read or unread by its id (from list_emails), confirming the state actually changed.
Create calendar event (Outlook)
Create an event in the signed-in Outlook consumer calendar.
Send an Outlook.com email
Send an email from Outlook.com (outlook.live.com) to a recipient, with a subject and body and an optional single file attachment. Confirms the message actually left by finding it in Sent Items, rather than assuming the Send click worked. With a file, Send is pressed only once Outlook has accepted the attachment; a file Outlook refuses stops the run with nothing sent.
Get calendar event (Outlook)
Read the full detail of one event in the signed-in Outlook consumer calendar, by its event id.
List Outlook.com calendars
List every calendar in the signed-in Outlook.com mailbox, ticked on or not, with whether each is shown in the calendar view and its colour (empty when set to automatic).
Reply to an Outlook.com email
Reply to one Outlook.com (outlook.live.com) message by its id (from list_emails), optionally replying to all recipients. Confirms the reply actually left by finding it in Sent Items. Opening the message to reply marks it read, as it would in the UI.
Update calendar event (Outlook)
Edit an existing event in the signed-in Outlook consumer calendar, by its event id. Changes subject, body, and location (the last only on an event that has none). Requires the expected subject as a safety interlock, and confirms every change by reloading the event, because this calendar sometimes reverts a write. Start and end times cannot be changed.
Create an Outlook.com email draft
Create a saved draft in Outlook.com (outlook.live.com) with a recipient, subject and body, without sending it. Returns the draft's row id, confirmed by reopening the Drafts folder and matching the text you supplied — never inferred from the composer. A malformed address is kept as typed rather than tokenised, and the draft still saves.
Move an Outlook.com email to a folder
Move one Outlook.com (outlook.live.com) message to another folder by its id (from list_emails). Any folder in your folder list can be the destination, named exactly as it appears there. The move is confirmed on both sides — the message must have left the source and arrived in the destination — and because Outlook gives a message a new id in its new folder, that new id is returned for any follow-up call. Taking a message out of Junk Email is confirmed automatically without accepting Outlook's offer to stop future mail from that sender being treated as junk. Drafts are not supported.
Delete an Outlook.com email
Delete one received Outlook.com (outlook.live.com) message by its id (from list_emails). Confirms the message is actually gone and that exactly one message was removed, rather than assuming the action worked, and then reports whether it is still recoverable: deleting from an ordinary folder files the message in Deleted Items, while deleting from Junk Email destroys it outright. When it is recoverable the id it now has in Deleted Items is returned. Drafts are not supported, because selecting a draft opens it in the composer. Deleting from Deleted Items is also refused, since that is permanent and Outlook gates it behind a confirmation dialog.
Delete calendar event (Outlook)
Delete a single event from the signed-in Outlook consumer calendar, identified by its event id. Requires the expected subject as a safety interlock, and verifies the deletion committed by reloading — the site sometimes reverts a delete.
Outlook whoami (signed-in Microsoft account)
Report which Microsoft account this browser is signed in to Outlook.com with: the email address and display name. When the browser is signed out, the run fails with a signed-out error that says to sign in to Outlook.
