Move Item
m365_moveMove an email, mail folder, contact, or OneDrive item to another folder. Returns a new ID for moved emails and contacts for later calls.
Instructions
Move an email, mail folder, contact or OneDrive item to another folder. Moving an email to 'archive' archives it; moving a contact places it in a contact folder. Moved emails and contacts get a new ID, which is returned: use it for later calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Item to move. | |
| new_name | No | drive_item only: rename while moving. | |
| resource | Yes | Type of item. | |
| account_id | No | Account ID or email address. Omit when only one account is signed in. | |
| destination_id | No | Destination folder. email: mail folder ID or alias (archive, inbox, junk, deleted, drafts, sent). email_folder: mail folder ID or 'root'. contact: contact folder ID or 'default'. drive_item: folder ID or 'root'. | |
| destination_path | No | drive_item only: destination folder path instead of destination_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| status | Yes | ||
| summary | Yes | One-line human summary. The tool's text content is this result serialized as JSON (summary included), so a client that ignores structuredContent still sees every field. | |
| resource | Yes | ||
| previous_id | Yes | ||
| destination_id | Yes |