Write block(s)
traceable_block_writeInsert one or more body blocks at an anchor: after a TraceID (afterItemId), after a [[row N]] anchor (afterOrder, from a document read), or at the start/end of the body (position; default end). Returns the created rows with their new row orders, plus a renumbered marker when the insert shifted existing rows. IMPORTANT: an insert renumbers every row after the anchor, so row orders from earlier reads/responses go stale — re-read before further order-based calls, or anchor by TraceID (immune to renumbering).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | Fallback position in the body when no anchor is given (default end) | |
| afterOrder | No | Insert after this row order (the [[row N]] anchor) | |
| documentId | Yes | The document UUID | |
| trmContent | Yes | Traceable Markdown (TrMD). GitHub-flavored Markdown plus [[directive]] blocks — see traceable_capabilities. Read-only annotations ([[row]]/[[document]]) are rejected. | |
| afterItemId | No | Insert after the row with this TraceID (e.g. FR-003) |