Table of Contents

Class FtpUploadTool

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

A built-in tool for uploading a file to an FTP server.

Supports uploading from inline text content or from a local file path. Local path access is validated against the configured allow/block lists. File size is checked against the configured maximum before transfer.

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

Examples

var upload = new FtpUploadTool(new FtpToolOptions
{
    Host = "ftp.example.com",
    Username = "user",
    Password = "pass"
});

Constructors

FtpUploadTool()

Initializes a new instance with default options.

FtpUploadTool(FtpToolOptions)

Initializes a new instance with the specified 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