cURL
curl --request POST \ --url http://localhost:4242/{computer_name}/api/editor/view \ --header 'Content-Type: application/json' \ --data '{ "path": "/path/to/file.txt", "view_range": [ 1, 10 ] }'
"Line 1\nLine 2\nLine 3"
Retrieves the contents of a file, optionally within a specified line range.
Successfully retrieved file contents
The response is of type string.
string