notion_replace_file
Replace a file inside an existing Notion block in place. Update documents without changing the block's position on the page.
Instructions
Replace the file inside an EXISTING file/image/pdf/video/audio block, in place — the block keeps its position on the page. Use this to update a document without re-arranging anything; use notion_upload_file(position=...) to add a new block instead.
block_id: the file block to update (from notion_list_files_on_page or
notion_read_page(include_block_ids=True)).
source: same schemes as notion_upload_file (local:, shared:,
drive:, base64:).
caption: when non-empty, replaces the caption; when empty, the
existing caption is left untouched.
The new file must map to the same block type as the existing block (e.g. you cannot replace an image block's content with a PDF — Notion blocks are typed). In that case delete the block and upload anew.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| caption | No | ||
| block_id | Yes | ||
| filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |