ls

package
v0.0.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package ls provides directory listing operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inputs

type Inputs struct {
	Path  string `json:"path,omitempty"  jsonschema:"description=Directory path to list (default: current directory)"`
	Depth int    `` /* 128-byte string literal not displayed */
}

Inputs defines the parameters for the Ls tool.

type Tool

type Tool struct {
	tool.Base
}

Tool implements directory listing.

func New

func New() *Tool

New creates a new Ls tool with documentation.

func (*Tool) Execute

func (t *Tool) Execute(ctx context.Context, args map[string]any) (string, error)

Execute lists directory contents.

func (*Tool) Name

func (t *Tool) Name() string

Name returns the tool's identifier.

func (*Tool) Schema

func (t *Tool) Schema() tool.Schema

Schema returns the provider-agnostic tool definition.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL