Class FileSystemMoveTool
Moves (renames) a file or directory to a new location.
public sealed class FileSystemMoveTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
FileSystemMoveTool
- Implements
- Inherited Members
Examples
Letting an agent rename or relocate finished work:
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.IO;
var agent = Agent.CreateBuilder(model)
.WithTools(t => t.Register(new FileSystemMoveTool()))
.Build();
var result = await agent.RunAsync(@"Move C:\inbox\report.pdf to C:\archive\2026\report.pdf.");
Constructors
- FileSystemMoveTool()
Initializes a new instance with default settings.
- FileSystemMoveTool(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.