upload_file
Upload a local file to Notion storage and return a file_upload_id for referencing in image, file, PDF, or video blocks.
Instructions
Upload a file to Notion's own storage.
Returns a file_upload_id that can be referenced in image, file, pdf,
or video blocks via {"type": "file_upload", "file_upload": {"id": ...}}.
For the common case of uploading an image and creating a block in one step,
use upload_image_as_block instead.
Args: file_path: Local path to the file (PNG, JPEG, GIF, SVG, PDF, etc.), up to 20 MiB.
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": {
"file_path": "<file_path>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |