Table of Contents

Class FileSystemMkdirTool

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

Creates a directory on the local file system.

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

Examples

Setting up an output folder before writing artifacts:

using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn.IO;

var agent = Agent.CreateBuilder(model) .WithTools(t => t.Register(new FileSystemMkdirTool())) .Build();

var result = await agent.RunAsync(@"Create C:\output\2026-Q2 if it doesn't already exist.");

Constructors

FileSystemMkdirTool()

Initializes a new instance with default settings.

FileSystemMkdirTool(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.

Share