replace_image_block
Replace an existing Notion image block with a newly uploaded image while preserving its position, and optionally set a new caption.
Instructions
Replace an existing image block's content with a newly uploaded image.
Preserves the block's position in the parent: the new image is inserted where the old one was and the old block is deleted. The block ID changes.
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).
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": {
"block_id": "<block_id>",
"file_path": "<file_path>"
},
"name": "replace_image_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | ||
| block_id | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |