Table of Contents

Class FileSystemListTool

Namespace
LMKit.Agents.Tools.BuiltIn.IO
Assembly
LM-Kit.NET.dll

Lists files and directories, with optional pattern-based search.

public sealed class FileSystemListTool : IBuiltInTool, ITool, IToolMetadata
Inheritance
FileSystemListTool
Implements
Inherited Members

Examples

Showing the agent's view of a working directory:

using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.IO;

var agent = Agent.CreateBuilder(model) .WithTools(t => t.Register(new FileSystemListTool())) .Build();

var result = await agent.RunAsync(@"List all .cs files under C:\src\app, sorted by size.");

Constructors

FileSystemListTool()

Initializes a new instance with default settings.

FileSystemListTool(FileSystemToolOptions)

Initializes a new instance with custom options.

Properties

Description

Gets a concise description of what the tool does.

InputSchema

Gets the JSON Schema defining the expected input arguments.

Name

Gets the stable, unique identifier for this tool.

Methods

InvokeAsync(string, CancellationToken)

Executes the tool with the specified JSON arguments.

Share