Table of Contents

Class FtpToolOptions

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

Configuration options shared by all FTP tools.

public sealed class FtpToolOptions
Inheritance
FtpToolOptions
Inherited Members

Properties

AllowedLocalPaths

Gets or sets allowed local paths for file upload/download operations. When set, only files within these directories can be accessed locally. null or empty allows all paths.

BlockedLocalPaths

Gets or sets blocked local paths for file upload/download operations. Files within these directories cannot be accessed locally.

Host

Gets or sets the default FTP server hostname. Can be overridden per operation.

MaxFileSize

Gets or sets the maximum file size in bytes for upload and download. Default is 50 MB. Set to 0 for unlimited.

MaxTextLength

Gets or sets the maximum text length when returning file content as text. Default is 100000 characters. Set to 0 for unlimited.

PassiveMode

Gets or sets whether to use passive mode for data transfers. Default is true (recommended for most firewall configurations).

Password

Gets or sets the default password. Can be overridden per operation.

Port

Gets or sets the default FTP server port. Default is 21. Can be overridden per operation.

TimeoutSeconds

Gets or sets the connection and transfer timeout in seconds. Default is 30.

UseTls

Gets or sets whether to use explicit FTPS (FTP over TLS). Default is false.

Username

Gets or sets the default username. Default is "anonymous". Can be overridden per operation.

Share