Table of Contents

Class FtpRmdirTool

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

A built-in tool for removing a directory on an FTP server.

This is an irreversible operation. The directory and its metadata cannot be recovered after removal. The directory must typically be empty for the RMD command to succeed.

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

Examples

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

Constructors

FtpRmdirTool()

Initializes a new instance with default options.

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