Alphakdeps.io is experimental and evolving — the registry and packages may change or reset.
Toolkdeps asset

kdeps-tools-list_files

v2.0.0

List files and directories in a given directory path. Returns names and types (file/dir). Use to discover project structure before reading or editing files. Omit path to list the current working directory.

set tools / shelf tools

LLM context: ~96 tokens when loaded (prompt or tool definition)

Where it runs

Part of the tools set, used in workflow and agent mode. What the model is told about each built-in tool: its description, usage notes and parameters. kdeps runs the tool itself.

  1. the agent loop builds the request
  2. the tool definitions are sent to the modeltools/list_files
  3. the model calls a tool
  4. kdeps runs it
  5. the result goes back to the model

Loaded by: kdeps (agent loop), /update, /settings, kdeps run, kdeps install, kdeps list, kdeps uninstall, kdeps update

In the code: kdeps (agent loop)agent.RegisterBuiltinToolsagent.definedAs

Install

A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.

kdeps install tools/list_files

Pin a version with kdeps install tools/list_files@<version>.

Contents

List files and directories in a given directory path. Returns names and types (file/dir). Use to discover project structure before reading or editing files. Omit path to list the current working directory.

ParameterTypeDescription
pathstringPath to the directory to list (absolute, or relative to the working directory). Omit to list the current working directory.

Python script (declared in YAML, no Go code)

import json, os, sys

a = json.loads(sys.argv[1])
d = str(a.get("path") or "").strip() or os.getcwd()
d = d if os.path.isabs(d) else os.path.abspath(d)
# An omitted path is the working directory, which the paths: check skips.
if os.path.dirname(d) == d and os.environ.get("KDEPS_ALLOW_ROOT", "").strip().lower() != "true":
    sys.exit("list_files: operation on root directory '/' is blocked (set KDEPS_ALLOW_ROOT=true to permit)")
try:
    entries = sorted(os.scandir(d), key=lambda e: e.name)
except OSError as e:
    sys.exit("list_files: read %s: %s" % (d, e.strerror or e))
print(d + ":")
for e in entries:
    print("  [%s] %s" % ("dir" if e.is_dir(follow_symlinks=False) else "file", e.name))

Paths kept in the workspace: path

aliases:
  - ls
  - list_dir
  - list_directory
  - dir

Versions

VersionPublishedStatus
2.0.010/24/2026active
1.1.010/17/2026active
1.0.010/11/2026active

Details

Author
kdeps
License
Apache-2.0
Latest Version
2.0.0
Published
10/11/2026

Tags

kdepstool