v1

latestOpenAPI 3.1.02026-07-13372867.8 KB
editor

Insert Text

Inserts text at a specified line number in a file.

post/api/editor/insert

Request body

pathstring required

File path to modify

textstring required

Text to insert

insert_lineinteger nullable

Line number to insert at (1-based)

Example request

{
  "insert_line": 5,
  "path": "/path/to/file.txt",
  "text": "New line of text"
}

Response

Successfully inserted text