upload_image_as_block
Upload an image file to Notion and insert it as an image block, either after a specific block or within a page, with optional caption. The image is stored in Notion's workspace storage.
Instructions
Upload an image file to Notion and insert it as a new image block.
This is the standard replacement for imgur-hosted images. The image is stored in Notion's own workspace storage.
Args: file_path: Local path to the image (PNG, JPEG, GIF, SVG, WEBP, etc.) after_block_id: If provided, insert immediately after this block (siblings). parent_id: If after_block_id is empty, append to this page/block instead. caption: Optional caption text for the image.
Exactly one of after_block_id or parent_id must be provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| after_block_id | No | ||
| parent_id | No | ||
| caption | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |