repos

Summarize a repo session subtree so the model can understand file layout before reading or editing specific files.

Summarize a repo session subtree so the model can understand file layout before reading or editing specific files.

Org permission: package:read.

get/v1/repo-sessions/{session_id}/tree

Request

  • Base URL: https://api.kody.codes
  • URL: https://api.kody.codes/v1/repo-sessions/{session_id}/tree
  • Auth: HTTP bearer

Path parameters

session_idstring required

Active repo session id from repoOpenSession or repoListSessions.

Query parameters

pathstring

Optional repo-relative subpath to summarize. Defaults to the session source root.

max_depthinteger

Optional maximum directory depth to include in the summary tree.

Response

Success.

pathstring required
filesinteger required
directoriesinteger required
symlinksinteger required
total_bytesinteger required
max_depthinteger required

Changes

No recorded changes to this operation across all 2 revisions of this API.