remove_inbox_attachment
Behavior, inputs, outputs and permissions for remove_inbox_attachment.
Reviewed · 2026-10-06 / Ridian
This reference is generated from the published tool contract.
Behavior and boundaries
Section titled “Behavior and boundaries”Permanently removes one ready, failed or unfinished attachment from a draft only when expectedRevision matches. Cancels pending attachment work, deletes stored bytes and releases reserved storage once. Returns the new draft revision. Does not remove attachments from queued or sent mail. On conflict or an uncertain response, list attachments and read the current draft before deciding again.
Permissions
Section titled “Permissions”Granted scopes, accounts, calendars and visibility rules limit access. Workspace administrators do not automatically gain access to other users’ accounts.
inbox:write
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "maxLength": 200 }, "expectedRevision": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 } }, "required": [ "id", "expectedRevision" ], "additionalProperties": false}Output
Section titled “Output”{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "revision": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 } }, "required": [ "revision" ], "additionalProperties": false}Errors and retries
Section titled “Errors and retries”Check the tool result for errors. Do not blindly retry writes after a timeout. Check the current resource or send status first.