Args

data class Args(val path: String, val depth: Int = 1, val filter: String? = null) : ToolArgs(source)

Specifies which directory to list and how to traverse its contents.

Constructors

Link copied to clipboard
constructor(path: String, depth: Int = 1, filter: String? = null)

Properties

Link copied to clipboard
val depth: Int = 1

how many levels deep to traverse (1 = direct children only, 2 = include subdirectories, etc.), defaults to 1

Link copied to clipboard
val filter: String? = null

glob pattern to match specific files/folders (e.g., "*.kt" for Kotlin files), defaults to null

Link copied to clipboard

absolute filesystem path to the target directory