Insert blocks at a specific position
buildin_insert_blocksInsert new blocks after a specific child block within a parent page. Handles API limitations by reordering blocks, but note potential block ID changes.
Instructions
Insert new blocks after a specific child block within a parent. Since the Buildin.ai API only supports appending to the end, this works by: 1) deep-cloning all blocks after the insertion point, 2) deleting them, 3) appending the new blocks, 4) re-appending the cloned blocks. WARNING: block IDs of re-created blocks will change. This is NOT atomic — if interrupted mid-operation, blocks may be lost. Use with caution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_id | Yes | Page or parent block ID containing the children. | |
| after | Yes | ID of the existing child block to insert after. | |
| children | Yes | New blocks to insert. |