Python SDK
HTTP API
Parameters
Viking URI of the file to read
Byte offset to start reading from
Maximum number of bytes to read (
-1 for entire file)Response
Operation status (
ok on success)The file content as a string
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
