add_block_to_page
Add a content or layout block to a page with auto-generated ID. Use layoutRegion for layout blocks, omit for body content. Fix blockWarnings before saving.
Instructions
Add a block to a page (auto-generates the block id). Pass layoutRegion to add a layout block; omit it for a content block in the page body. Only call after the user confirms. If the result includes blockWarnings, the saved content violates the workspace block manifest (unknown block type, unknown field or wrong value shape) - correct the content and save again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | ||
| pageId | No | Page id | |
| position | No | 0-based insert position (content blocks only; default: end) | |
| layoutRegion | No | Layout region (e.g. 'header','footer') for a layout block; omit for a content block |