upload_file_as_block
Upload any file type (PDF, document, archive) to Notion and insert it as a file block. Specify file path, optional caption, and placement by parent or after a block.
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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| after_block_id | No | ||
| parent_id | No | ||
| caption | No | ||
| name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |