editor
View File Contents
Changed onRetrieves the contents of a file, optionally within a specified line range.
post/api/editor/view
Request
- Base URLhttp://localhost:4242/your-computer-name
- URLhttp://localhost:4242/your-computer-name/api/editor/view
- Authnone declared
Request body
Example request
{
"path": "/path/to/file.txt",
"view_range": [
1,
10
]
}Response
Successfully retrieved file contents
string required
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking