PATCH
notion_blocks_update.py
import asyncio
from charter.packs import notion
result = asyncio.run(notion.blocks_update.ainvoke({"blockId": ..., "body": ...}))
Requires
Update content.This tool’s JSON schema is 50 KB, because it models the whole resource this endpoint writes.
That is more context than most tasks. Narrow it at the call site
with Those are its heaviest branches by schema size, not a recommendation: which ones you can spare is yours to decide. The tool underneath is unchanged.
See Projections.
Tool.derived:narrowed = notion.blocks_update.derived(
name="blocks_update_narrowed",
drop={"body.numbered_list_item", "body.heading_4", "body.heading_3"},
)
Path parameters
| Field | Type | Description |
|---|---|---|
blockId * | string | The ID of the block. |
Body
| Field | Type | Description |
|---|---|---|
body * | BlockUpdateBody | The content to replace. |