edit
Insert, replace, delete, or move blocks within sections of a LaTeX document. Read and update raw LaTeX with lint checking. Control page breaks before or after sections.
Instructions
Manipulate document content structurally.
Actions:
insert: Add a new block at a position within a section.
replace: Replace a block at a position with new content.
delete: Remove a block at a position.
move: Move a block from one location to another.
read_raw: Read a RawLatex block with line numbers.
replace_raw: Update a RawLatex block (full or line-level) with lint check.
Sections are addressed by title path (e.g., 'Methods/Data Collection'). Blocks within a section are addressed by 0-based index.
page_break: For sections — "before", "after", "both", or "" to clear. Emits \clearpage before/after the section.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| block_type | No | ||
| section | No | ||
| position | No | ||
| content | No | ||
| title | No | ||
| level | No | ||
| language | No | ||
| path | No | ||
| caption | No | ||
| headers | No | ||
| rows | No | ||
| target_section | No | ||
| target_position | No | ||
| template | No | ||
| lines | No | ||
| lint | No | ||
| page_break | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |