replace_image_block
Replace an existing image block with a new uploaded image, preserving its position in the parent block.
Instructions
Replace an existing image block's content with a newly uploaded image.
Preserves the block's position in the parent by deleting the old block and inserting the new one after the previous sibling. If the image block is the very first child of its parent, the new block is appended to the end (Notion does not support prepend-at-position).
Args: block_id: The existing image block to replace. file_path: Local path to the new image. caption: Optional caption for the new image (omit to drop the old one).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block_id | Yes | ||
| file_path | Yes | ||
| caption | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |