download_image_block
Downloads an image from a Notion image block to a local path, handling external, hosted, and uploaded sources while refreshing short-lived signed URLs at call time.
Instructions
Download the image file from an image block to a local path.
Works for all three image source types: external URL, Notion-hosted file, and file_upload references. Notion-hosted URLs are signed and short-lived, so this tool re-fetches them at call time.
Args: block_id: The image block to download from. output_path: Local path to write the image to.
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>",
"output_path": "<output_path>"
},
"name": "download_image_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block_id | Yes | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |