Class FtpListTool
A built-in tool for listing files and directories on an FTP server.
Retrieves directory listings with parsed entry metadata (name, type, size, permissions, date).
Also supports querying individual file information (size and last modification time)
via the optional infoPath parameter.
public sealed class FtpListTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
FtpListTool
- Implements
- Inherited Members
Examples
var list = new FtpListTool(new FtpToolOptions
{
Host = "ftp.example.com",
Username = "user",
Password = "pass"
});
Constructors
- FtpListTool()
Initializes a new instance with default options.
- FtpListTool(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.