excel

package
v0.59.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxRows            = 1048576
	MaxColumns         = 16384
	MaxCellValueLength = 32767 // Maximum characters in a cell value
)

Excel limits

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartError

type ChartError struct {
	Operation string
	ChartType string
	Cause     error
}

ChartError represents chart creation errors

func (*ChartError) Error

func (e *ChartError) Error() string

func (*ChartError) Unwrap

func (e *ChartError) Unwrap() error

type DataError

type DataError struct {
	Operation string
	Location  string
	Cause     error
}

DataError represents errors related to data operations

func (*DataError) Error

func (e *DataError) Error() string

func (*DataError) Unwrap

func (e *DataError) Unwrap() error

type ExcelTool

type ExcelTool struct{}

ExcelTool implements Excel file (xlsx) manipulation

func (*ExcelTool) Definition

func (t *ExcelTool) Definition() mcp.Tool

Definition returns the tool's definition for MCP registration

func (*ExcelTool) Execute

func (t *ExcelTool) Execute(ctx context.Context, logger *logrus.Logger, cache *sync.Map, args map[string]any) (*mcp.CallToolResult, error)

Execute executes the Excel tool

func (*ExcelTool) ProvideExtendedInfo

func (t *ExcelTool) ProvideExtendedInfo() *tools.ExtendedHelp

ProvideExtendedInfo provides detailed usage information for the Excel tool

type FormatError

type FormatError struct {
	Operation string
	Range     string
	Cause     error
}

FormatError represents formatting errors

func (*FormatError) Error

func (e *FormatError) Error() string

func (*FormatError) Unwrap

func (e *FormatError) Unwrap() error

type FormulaError

type FormulaError struct {
	Cell    string
	Formula string
	Message string
}

FormulaError represents formula-related errors

func (*FormulaError) Error

func (e *FormulaError) Error() string

type RangeError

type RangeError struct {
	Operation string
	Range     string
	Cause     error
}

RangeError represents range operation errors

func (*RangeError) Error

func (e *RangeError) Error() string

func (*RangeError) Unwrap

func (e *RangeError) Unwrap() error

type SheetError

type SheetError struct {
	Operation string
	SheetName string
	Cause     error
}

SheetError represents errors related to worksheet operations

func (*SheetError) Error

func (e *SheetError) Error() string

func (*SheetError) Unwrap

func (e *SheetError) Unwrap() error

type ValidationError

type ValidationError struct {
	Field   string
	Value   any
	Message string
}

ValidationError represents validation failures

func (*ValidationError) Error

func (e *ValidationError) Error() string

type WorkbookError

type WorkbookError struct {
	Operation string
	Path      string
	Cause     error
}

WorkbookError represents errors related to workbook operations

func (*WorkbookError) Error

func (e *WorkbookError) Error() string

func (*WorkbookError) Unwrap

func (e *WorkbookError) Unwrap() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL