Python SDK
HTTP API
Parameters
string
required
Viking URI of the file to read
integer
default:"0"
Byte offset to start reading from
integer
default:"-1"
Maximum number of bytes to read (
-1 for entire file)Response
string
Operation status (
ok on success)string
The file content as a string
number
Execution time in seconds
CLI
Context Layers
OpenViking provides three levels of content access:- L0 (Abstract): ~100 token summary via
abstract() - L1 (Overview): Structured overview via
overview() - L2 (Full): Complete content via
read()(this method)
Error Cases
- Returns error if the URI points to a directory (use
overview()for directories) - Returns error if the file doesn’t exist
- For binary files, content may not be readable as text
