overleaf_insert_lines
Insert new lines into an Overleaf project document before a specified line or append them at the end, with optional tracked-change suggestions.
Instructions
Insert new line(s) into a document, before a given line or at the end.
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": {
"project": "<project>",
"path": "<path>",
"text": "<text>"
},
"name": "overleaf_insert_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path in the project, e.g. 'main.tex' or 'chapters/intro.tex'. | |
| text | Yes | Line(s) to insert. | |
| project | Yes | Project id, Overleaf project URL, or exact project name. | |
| before_line | No | Insert before this 1-based line; omit to append at the end. | |
| track_changes | No | Submit as a tracked change (suggestion) instead of a direct edit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |