outlook__upload_attachment
An active upload at the same path is reused; otherwise the attachment is downloaded server-side using the selected Outlook identity or the project-scoped mock integration service.
Attachment bytes and OAuth credentials never pass through model context.
Access
Requires a project integration connection for outlook.
Call type: Can change resources.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
project_reference | string | No | Project ID or slug |
message_id | string | Yes | Outlook message ID containing the attachment. Minimum length: 1. |
attachment_id | string | Yes | Outlook attachment ID returned by list_attachments. Minimum length: 1. |
file_path | string | Yes | Destination upload path (for example, inbox/attachments/submission-id/job.pdf). |
content_type | string | No | MIME type override for a fresh download; defaults to the Microsoft Graph response content type. An authorized existing upload is reused with its stored MIME type. Minimum length: 1. |
max_bytes | integer | No | Optional fresh attachment download limit in bytes. Defaults to and cannot exceed 26214400 (25 MiB). Does not limit an authorized existing upload reused without downloading. Maximum: 26214400. |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "outlook__upload_attachment",7 "arguments": {8 "message_id": "example",9 "attachment_id": "example",10 "file_path": "example"11 }12 }13}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
upload_id | string | Yes | Persisted upload UUID. Format: uuid. |
file_path | string | Yes | Storage path including the project id prefix. Prefer path when chaining upload tools. get_upload_download_url also accepts this legacy value within the same project. |
path | string | Yes | Path relative to the project root, without the project id. Pass this path value as the upload_reference of get_upload_download_url and as the path of the other upload tools. |
file_name | string | Yes | Filename from the stored project-relative path. |
content_type | string | Yes | Effective stored MIME type; application/octet-stream when unavailable. Minimum length: 1. |
size | integer | Yes | Actual stored byte size, including zero. Reused uploads retain their stored size; fresh downloads obey the tool byte limit. Minimum: 0. Maximum: 9007199254740991. |
status | string | Yes | Persisted upload status returned by the storage record, normally active. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project ID or slug"7 },8 "message_id": {9 "type": "string",10 "minLength": 1,11 "description": "Outlook message ID containing the attachment."12 },13 "attachment_id": {14 "type": "string",15 "minLength": 1,16 "description": "Outlook attachment ID returned by list_attachments."17 },18 "file_path": {19 "type": "string",20 "description": "Destination upload path (for example, inbox/attachments/submission-id/job.pdf)."21 },22 "content_type": {23 "type": "string",24 "minLength": 1,25 "description": "MIME type override for a fresh download; defaults to the Microsoft Graph response content type. An authorized existing upload is reused with its stored MIME type."26 },27 "max_bytes": {28 "type": "integer",29 "exclusiveMinimum": 0,30 "maximum": 26214400,31 "description": "Optional fresh attachment download limit in bytes. Defaults to and cannot exceed 26214400 (25 MiB). Does not limit an authorized existing upload reused without downloading."32 }33 },34 "required": [35 "message_id",36 "attachment_id",37 "file_path"38 ],39 "additionalProperties": false,40 "description": "Arguments for the outlook__upload_attachment tool.",41 "$schema": "http://json-schema.org/draft-07/schema#"42}output-schema.json
1{2 "type": "object",3 "properties": {4 "upload_id": {5 "type": "string",6 "format": "uuid",7 "description": "Persisted upload UUID."8 },9 "file_path": {10 "type": "string",11 "description": "Storage path including the project id prefix. Prefer `path` when chaining upload tools. `get_upload_download_url` also accepts this legacy value within the same project."12 },13 "path": {14 "type": "string",15 "description": "Path relative to the project root, without the project id. Pass this `path` value as the `upload_reference` of `get_upload_download_url` and as the path of the other upload tools."16 },17 "file_name": {18 "type": "string",19 "description": "Filename from the stored project-relative path."20 },21 "content_type": {22 "type": "string",23 "minLength": 1,24 "description": "Effective stored MIME type; application/octet-stream when unavailable."25 },26 "size": {27 "type": "integer",28 "minimum": 0,29 "maximum": 9007199254740991,30 "description": "Actual stored byte size, including zero. Reused uploads retain their stored size; fresh downloads obey the tool byte limit."31 },32 "status": {33 "type": "string",34 "description": "Persisted upload status returned by the storage record, normally active."35 }36 },37 "required": [38 "upload_id",39 "file_path",40 "path",41 "file_name",42 "content_type",43 "size",44 "status"45 ],46 "additionalProperties": false,47 "description": "Structured download url to project upload output schema for MCP tools.",48 "$schema": "http://json-schema.org/draft-07/schema#"49}