Table of Contents

Class SpreadsheetCreateTool

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

A built-in tool for creating a new Excel (.xlsx) file or adding a worksheet to an existing file.

If the specified file does not exist, a new workbook is created with one sheet. If the file already exists, a new worksheet is added to it.

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

Examples

var options = new SpreadsheetToolOptions { AllowWrite = true };
var createTool = new SpreadsheetCreateTool(options);
var result = await createTool.InvokeAsync(@"{""path"":""report.xlsx"",""sheetName"":""Sales""}");

Constructors

SpreadsheetCreateTool()

Initializes a new instance with default options.

SpreadsheetCreateTool(SpreadsheetToolOptions)

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