drive_delete_file
Move a Google Drive file to the trash with human approval. First call returns a preview and request_id; approve out of band, then call again to execute. File stays restorable.
Instructions
Move a Google Drive file to the trash. 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 file goes to the Drive trash, from where the user can restore it; nothing is erased permanently. Approval is still required because the file disappears from where the user expects it. The preview shows the file id and name. Returns {success}. Requires a connected Google account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File id from drive_list_files. | |
| 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. |