Namespace LMKit.Agents.Tools.BuiltIn.Data
Classes
- Base64ImageConvertTool
A built-in tool for converting images to/from base64 data URLs.
Convert base64 to data URLs, extract base64 from data URLs, or create placeholder images.
- Base64ImageInfoTool
A built-in tool for analyzing base64-encoded image data.
Get dimensions, format, size, and validate encoding of base64 images.
- CountryListTool
A built-in tool for listing countries or getting flag emojis.
List countries filtered by region, or get the flag emoji for a country code.
- CountryLookupTool
A built-in tool for looking up country information.
Look up country information by name, code, phone prefix, currency, or language.
- CsvConvertTool
A built-in tool for converting between CSV and JSON formats.
Supports converting CSV to JSON, JSON arrays to CSV, and generating CSV from structured header and row data.
- CsvParseTool
A built-in tool for parsing CSV data and inspecting its structure.
Returns parsed rows, column metadata, or summary information about CSV content.
- CsvQueryTool
A built-in tool for querying, filtering, and sorting CSV data.
Supports filtering rows by column values with comparison operators, sorting by column, and querying rows that match specific criteria.
- CsvToolOptions
Configuration options shared by all CSV tools.
- DatabaseBackupTool
A built-in tool for creating a backup copy of a SQLite database.
Copies the database file to a specified destination path. Both source and destination paths are validated against the configured policy.
- DatabaseExecuteTool
A built-in tool for executing write SQL statements on a SQLite database.
Supports INSERT, UPDATE, DELETE, and DDL statements (CREATE, DROP, ALTER) when permitted by the configured DatabaseToolOptions.
- DatabaseExportTool
A built-in tool for exporting data from a SQLite database as CSV or JSON.
Supports exporting via a custom SELECT query or by specifying a table name. The database is always opened in read-only mode.
- DatabaseImportTool
A built-in tool for importing CSV data into a SQLite database table.
Parses CSV content, optionally creates the target table from headers, and inserts all rows in a single transaction for performance.
- DatabaseQueryTool
A built-in tool for executing read-only SQL queries on a SQLite database.
Supports executing SELECT queries, listing tables, and inspecting table schemas. All operations open the database in read-only mode, ensuring no data is modified.
- DatabaseToolOptions
Configuration options shared by all database tools.
- DatabaseVacuumTool
A built-in tool for compacting and optimizing a SQLite database by running VACUUM.
Reclaims unused space and defragments the database file. Reports the file size before and after the operation.
- HtmlEncodeTool
A built-in tool for encoding or decoding HTML entities.
Converts special characters to their HTML entity equivalents (encode), or converts HTML entities back to their original characters (decode).
- HtmlExtractTool
A built-in tool for extracting structured data from HTML content.
Supports extracting plain text, links, images, metadata, tables, or arbitrary elements by tag name.
- HtmlSanitizeTool
A built-in tool for cleaning HTML by stripping tags or sanitizing dangerous elements.
Can either strip all tags to produce plain text, or selectively remove dangerous elements (scripts, event handlers, javascript URIs) while preserving safe formatting tags.
- IniConvertTool
A built-in tool for converting between INI and JSON formats.
Convert INI content to JSON or generate INI content from a JSON string.
- IniReadTool
A built-in tool for reading and parsing INI configuration data.
Get values, list sections, or parse entire INI content.
- IniWriteTool
A built-in tool for modifying INI configuration data.
Set values, remove keys or sections, or generate new INI content from structured data.
- JsonFormatTool
A built-in tool for formatting or minifying JSON strings.
Pretty-prints JSON with indentation by default, or minifies to a compact single-line representation when requested.
- JsonParseTool
A built-in tool for parsing and validating JSON strings.
Returns structure information (type, preview) and validation status. Optionally performs validation only without returning structure info.
- JsonQueryTool
A built-in tool for querying JSON data using dot-notation paths.
Supports extracting values, listing keys or values, and counting elements in JSON objects and arrays.
- MarkdownConvertTool
A built-in tool for converting Markdown to HTML or stripping Markdown formatting to plain text.
- MarkdownExtractTool
A built-in tool for extracting structured data from Markdown content.
Extract headings, links, code blocks, images, table of contents, or statistics.
- QrCodeGenerateTool
A built-in tool for generating QR code data.
Generate QR codes as SVG for various content types: text, URL, WiFi, vCard, SMS, email, phone.
- SpreadsheetCreateTool
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.
- SpreadsheetReadTool
A built-in tool for reading cells, ranges, sheet info, and converting data from Excel (.xlsx) files to structured formats.
Supports reading specific ranges, listing sheets, and outputting data as rows, CSV, or JSON. The file is always opened in read-only mode.
- SpreadsheetToolOptions
Configuration options shared by all spreadsheet tools.
- SpreadsheetWriteTool
A built-in tool for writing values to cells in an existing Excel (.xlsx) file.
Accepts an array of cell writes, each specifying a cell address and value or formula. The file must already exist; use SpreadsheetCreateTool to create new files.
- XmlConvertTool
A built-in tool for converting between XML and JSON formats, or pretty-printing XML.
Supports converting XML to JSON, JSON to XML, and formatting (pretty-printing) XML.
- XmlParseTool
A built-in tool for parsing and validating XML strings.
Returns structure information (root element, namespace, element/attribute counts) and validation status. Can optionally perform validation only.
- XmlQueryTool
A built-in tool for querying XML data using XPath expressions.
Supports returning a single match or all matching nodes.
- XmlToolOptions
Configuration options shared by XML atomic tools.
- XmlTransformTool
A built-in tool for transforming XML using an XSLT stylesheet.
Applies an XSLT stylesheet to an XML document and returns the transformed output. XSLT script blocks and the document() function are disabled for security.
- YamlConvertTool
A built-in tool for converting between YAML and JSON formats, or pretty-printing YAML.
Supports three conversion directions: YAML to JSON, JSON to YAML, and YAML reformatting with configurable indentation.
- YamlParseTool
A built-in tool for parsing and validating YAML strings.
Parses YAML content into a structured object, or validates YAML syntax and reports any formatting issues such as tabs or trailing whitespace.
- YamlQueryTool
A built-in tool for querying YAML data using dot-notation paths.
Parses YAML content and navigates to a specific value using a dot-notation path with array index support (e.g., "spec.containers[0].name").