append_codebox_to_node
Append a codebox or raw XML to a CherryTree node, with automatic byte-level audit and rollback on XML parse failure.
Instructions
Append a codebox (or raw XML content) to an existing node.
Args: node_id: Node ID. code: Code content (ignored if content_xml is set). syntax: Syntax language. text_before: Text before codebox (ignored if content_xml is set). text_after: Text after codebox (ignored if content_xml is set). content_xml: Raw CherryTree XML to append. See create_node docs for format.
Returns: Confirmation message followed by byte-by-byte audit report. On XML parse failure, backup is restored automatically (ROLLBACK).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| syntax | No | sh | |
| node_id | Yes | ||
| text_after | No | ||
| content_xml | No | ||
| text_before | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |