upload_file_as_block
Upload PDFs, spreadsheets, archives, or other attachments to Notion and insert them as file blocks, set a caption or display name, and place them after a chosen block or on a page.
Instructions
Upload a file (PDF, doc, any attachment) to Notion and insert as a file block.
Analogous to upload_image_as_block but for non-image files. Use this for PDFs, spreadsheets, archives, etc.
Args: file_path: Local path to the file. after_block_id: If provided, insert after this block (siblings). parent_id: If after_block_id is empty, append to this page/block. caption: Optional caption. name: Optional display name override (defaults to the filename).
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_as_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| caption | No | ||
| file_path | Yes | ||
| parent_id | No | ||
| after_block_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |