Delete paragraph
delete_paragraphDelete a paragraph by its ID or index+hash, choosing tracked deletion for review or direct removal, while the ledger records every change. Ensures accuracy by refusing section breaks or unaccepted revisions.
Instructions
Delete one whole paragraph and record it in the session's journal. Address it by para_id — the w14:paraId find_text returns — or by para_index TOGETHER WITH para_hash, because an index alone silently addresses a different paragraph once anything above it moves. mode 'tracked' marks the paragraph mark AND every run with w:del, so a reviewer can reject it back and nothing is actually removed; 'direct' removes it outright and is accounted for by the ledger alone, which the receipt discloses. Refused if the paragraph carries a section break, or holds an unaccepted revision by another author. Seal the session with commit_document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | tracked | |
| note | No | ||
| part | Yes | ||
| author | Yes | ||
| para_id | No | ||
| para_hash | No | ||
| para_index | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| mode | Yes | ||
| note | Yes | ||
| part | Yes | ||
| after | Yes | ||
| parts | Yes | ||
| before | Yes | ||
| para_id | Yes | ||
| para_index | Yes | ||
| session_id | Yes | ||
| revision_ids | Yes | ||
| result_digest | Yes | ||
| baseline_digest | Yes | ||
| document_digest_changed | Yes |