patch_block_content
Apply targeted HTML edits to a block's localized content via insert_before, insert_after, or replace_section markers, avoiding full content resubmission. Requires user confirmation before saving.
Instructions
Apply surgical HTML edits (insert_before/insert_after/replace_section) to a block's localized content string without re-sending the full content. Each op's marker must match exactly once. 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 |
|---|---|---|---|
| locale | No | Language code, e.g. 'en' (see get_site_config) | |
| pageId | No | Page id | |
| blockId | No | Content block instance id (layout blocks not supported) | |
| fieldPath | No | Field inside content[locale] to patch (default: 'content') | |
| operations | No | Ordered list of patch operations (applied in order) | |
| expectedVersion | No | Optimistic-concurrency guard: the page version you last read |