notion-mcp__notion_attach_file
Puts a file on a Notion page, appended at the end of the page: an image as an image block, a PDF as a PDF block, and any other file as a file block. The file is named by a file reference. A reference to a file in Gmail or Drive names where it lives: the gateway fetches it and hands it straight to Notion, so its bytes stay out of the conversation. A gmail_message reference puts a whole email on the page as its original .eml, and a gmail_attachment reference one attachment of an email, named by the part id gmail_read lists for it. A drive_file reference puts a Google Drive file as stored, and a drive_export reference a Google Docs, Sheets or Slides file exported to a format such as pdf. A content reference carries a file the caller already holds, as standard base64 in the call, at most 1 MB decoded. An upload reference names a file the user sent through file_upload_link, up to 25 MB, which goes to one call. One file a call. Notion takes a file of at most 20 MB in one part, which is what this tool sends, and a free Notion workspace accepts files of at most 5 MB; the workspace's own limit is read from Notion before anything is sent, and a larger file is refused with nothing sent. The answer is a receipt with the new block's id and type, the file's name, size and type, the SHA-256 and byte count of what was sent, and the page's id, title and URL. The upload is not sent twice; after a failure, the page shows whether the file arrived.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page_id": "<page_id>",
"file": "<file>"
},
"name": "notion-mcp__notion_attach_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | A file reference. For a whole Gmail message: {"type": "gmail_message", "message_id": "<id>"}. For one attachment of a message: {"type": "gmail_attachment", "message_id": "<id>", "part_id": "<part id>"}. For a Drive file as stored: {"type": "drive_file", "file_id": "<id>"}. For a Google Docs, Sheets or Slides file exported: {"type": "drive_export", "file_id": "<id>", "format": "pdf"}. For a file the caller already holds: {"type": "content", "name": "<file name>", "base64": "<standard base64, one unbroken string>"}, at most 1 MB decoded. For a file sent through file_upload_link: {"type": "upload", "upload_id": "<id from its receipt>"}. | |
| account | No | Optional email address of the connected account to use (e.g. 'user@gmail.com'). If omitted, the default account is used. | |
| page_id | Yes | The page's Notion id or URL. The file is appended at the end of this page. | |
| filename | No | The name the file has on the page. Optional; by default the name comes from the source. |