MCPcopy Create free account
hub / github.com/JaredStewart/coderlm / peek_file

Function peek_file

plugin/skills/coderlm/scripts/coderlm_cli.py:476–481  ·  view source on GitHub ↗

Read a range of lines from a file.

(file: str, start: int = 0, end: int = 50)

Source from the content-addressed store, hash-verified

474
475
476def peek_file(file: str, start: int = 0, end: int = 50):
477 """Read a range of lines from a file."""
478 state = _load_state()
479 result = _safe_get(state, "/peek", {"file": file, "start": start, "end": end})
480 print(json.dumps(result, indent=2) if isinstance(result, (dict, list)) else result)
481 return result
482
483
484def structure(detail: int = 0, depth: int = 0):

Callers

nothing calls this directly

Calls 2

_load_stateFunction · 0.85
_safe_getFunction · 0.85

Tested by

no test coverage detected