MCPcopy
hub / github.com/volcengine/OpenViking / read

Method read

openviking_cli/client/base.py:206–214  ·  view source on GitHub ↗

Read file content (L2). Args: uri: Viking URI offset: Starting line number (0-indexed). Default 0. limit: Number of lines to read. -1 means read to end. Default -1.

(self, uri: str, offset: int = 0, limit: int = -1)

Source from the content-addressed store, hash-verified

204
205 @abstractmethod
206 async def read(self, uri: str, offset: int = 0, limit: int = -1) -> str:
207 """Read file content (L2).
208
209 Args:
210 uri: Viking URI
211 offset: Starting line number (0-indexed). Default 0.
212 limit: Number of lines to read. -1 means read to end. Default -1.
213 """
214 ...
215
216 @abstractmethod
217 async def abstract(self, uri: str) -> str:

Callers 7

mainFunction · 0.45
_read_menu_keyFunction · 0.45
_masked_inputFunction · 0.45
get_ollama_modelsFunction · 0.45
start_ollamaFunction · 0.45
load_json_configFunction · 0.45
_load_from_fileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected