Table of Contents

Class FileSystemWriteTool

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

Writes or appends content to a file on the local file system.

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

Examples

Asking an agent to write a generated artifact to disk:

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

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

var result = await agent.RunAsync(@"Save the daily summary to C:\reports\summary.md.");

Constructors

FileSystemWriteTool()

Initializes a new instance with default settings.

FileSystemWriteTool(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