Summary
Split a paragraph at a visible-text offset, producing two paragraphs. Preserves unambiguous simple run properties around the cut. Rejects when the paragraph contains fields, content controls, drawings, equations, or unsupported tracked-change wrappers. Available on v2-backed sessions only; v1-backed sessions currently returnCAPABILITY_UNAVAILABLE.
- Operation ID:
blocks.split - API member path:
editor.doc.blocks.split(...) - Mutates document:
yes - Idempotency:
non-idempotent - Supports tracked mode:
yes - Supports dry run:
no - Deterministic target resolution:
yes
Expected result
Returns a BlocksSplitResult; on success carries the new tail paragraph address, affectedStories, and (for engines that report them) story-absolute textRangeShifts and a txId for history correlation.Input fields
| Field | Type | Required | Description |
|---|---|---|---|
offset | integer | yes | |
target | BlockNodeAddress | yes | BlockNodeAddress |
target.kind | "block" | yes | Constant: "block" |
target.nodeId | string | yes | |
target.nodeType | enum | yes | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
target.story | StoryLocator | no | StoryLocator |
Example request
Output fields
| Field | Type | Required | Description |
|---|---|---|---|
affectedStories | StoryLocator[] | no | |
inserted | BlockNodeAddress | yes | BlockNodeAddress |
inserted.kind | "block" | yes | Constant: "block" |
inserted.nodeId | string | yes | |
inserted.nodeType | enum | yes | "paragraph", "heading", "listItem", "table", "tableRow", "tableCell", "tableOfContents", "image", "sdt" |
inserted.story | StoryLocator | no | StoryLocator |
remappedRefs | AffectedRefRemapping[] | no | |
success | true | yes | Constant: true |
textRangeShifts | TextRangeShift[] | no | |
txId | string | no |
Example response
Pre-apply throws
TARGET_NOT_FOUNDCAPABILITY_UNAVAILABLEINVALID_TARGETINVALID_INPUT
Non-applied failure codes
INVALID_TARGETTARGET_NOT_FOUNDCAPABILITY_UNAVAILABLEINVALID_CONTEXTINVALID_INPUT
Raw schemas
Raw input schema
Raw input schema
Raw output schema
Raw output schema
Raw success schema
Raw success schema
Raw failure schema
Raw failure schema

