move_message
Move a message to another folder within one account. The first call returns a preview and needs out-of-band human approval before it executes.
Instructions
Move a message to another folder of the same account. TWO-PHASE, HUMAN-APPROVED: the first call (no request_id) executes nothing — it returns status=approval_required with a preview of exactly what would happen and a request_id. A human approves out of band (GigaMail console, CLI or Telegram, behind Windows Hello / Touch ID); the second call with that request_id executes the payload that was approved (the approved arguments, not the ones passed the second time). Requests expire (default 15 min); identical pending requests are deduplicated; more than 20 requests/hour per tool are refused (status=rate_limited). Every phase is written to the audit log. The preview shows the message's sender and subject and, above all, the folder it leaves and the folder it lands in, by readable name. Returns {success}. Nothing is destroyed and the move can be undone by moving the message back, but a move is enough to hide mail from the human who is supervising, so it is approved like any other action that changes what the mailbox looks like. Note: on IMAP the message gets a new UID in the destination folder, so the old message_id stops being valid. To delete a message use delete_message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_id | Yes | Destination folder: id (Graph) or name (IMAP) from list_folders. | |
| account_id | No | Account to operate on (integer id from list_accounts). Omit or null = the user's active account. | |
| message_id | Yes | Message id exactly as returned by list_messages / list_unread / search_mail (opaque Graph id for Microsoft accounts, numeric IMAP UID for IMAP accounts). Ids are account-specific: never reuse one across accounts. | |
| request_id | No | Omit on the first call. On the first call the tool does NOT execute: it returns status=approval_required, a preview and a request_id. A human must approve that request_id out of band (GigaMail console, `gigamail approvals approve`, or Telegram — all behind Windows Hello / Touch ID). Then call again with the same request_id to execute. The agent cannot approve; repeating the call without approval just returns awaiting_approval. | |
| source_folder | No | Folder the message is currently in (IMAP only; empty = inbox). |