upload_inbox_attachment
Behavior, inputs, outputs and permissions for upload_inbox_attachment.
Reviewed · 2026-10-06 / Ridian
This reference is generated from the published tool contract.
Behavior and boundaries
Section titled “Behavior and boundaries”Reserves storage and returns a one-use binary upload ticket for an existing draft and expectedRevision. Up to 10 attachments and 15000000 raw bytes total per message. Send the raw file body with HTTP POST to url using Authorization: Bearer
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": { "draftId": { "type": "string", "minLength": 1, "maxLength": 200 }, "expectedRevision": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "filename": { "type": "string", "minLength": 1, "maxLength": 200 }, "contentType": { "type": "string", "minLength": 3, "maxLength": 150 }, "size": { "type": "integer", "minimum": 0, "maximum": 15000000 } }, "required": [ "draftId", "expectedRevision", "filename", "contentType", "size" ], "additionalProperties": false}Output
Section titled “Output”{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "attachmentId": { "type": "string", "minLength": 1, "maxLength": 200 }, "url": { "type": "string", "format": "uri" }, "token": { "type": "string" }, "expiresAt": { "type": "number" }, "method": { "type": "string", "enum": [ "POST", "GET" ] } }, "required": [ "attachmentId", "url", "token", "expiresAt", "method" ], "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.