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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "edit"
}
}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 |