upload_image_as_block
Upload a local image to Notion's workspace storage and insert it as an image block after a specified block or append it to a page, with an optional caption.
Instructions
Upload an image file to Notion and insert it as a new image block.
The image is stored in Notion's own workspace storage, so no external image host is needed.
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.
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": {
"file_path": "<file_path>"
},
"name": "upload_image_as_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caption | No | ||
| file_path | Yes | ||
| parent_id | No | ||
| after_block_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |