v1

latestOpenAPI 3.1.02026-07-13372867.8 KB
editor

View File Contents

Retrieves the contents of a file, optionally within a specified line range.

post/api/editor/view

Request body

pathstring required

File path to view

view_rangeinteger[] nullable

Line range to view [start, end]

Example request

{
  "path": "/path/to/file.txt",
  "view_range": [
    1,
    10
  ]
}

Response

Successfully retrieved file contents

string required