upload_to_notion
Upload local files to Notion pages and attach them as image blocks, file blocks, covers, or icons.
Instructions
Upload a local file to Notion and attach it to a page
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>",
"page_id_or_url": "<page_id_or_url>"
},
"name": "upload_to_notion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | Caption for the uploaded file | |
| property | No | Database 'files' property name (attach to a property instead of appending a block) | |
| attach_as | No | Attach as an image/file block, or page cover/icon | image |
| file_path | Yes | Absolute path to the file to upload | |
| page_id_or_url | Yes | Notion page ID or page URL (NOT a database view URL) |