Class 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.
public sealed class DatabaseExportTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
DatabaseExportTool
- Implements
- Inherited Members
Examples
var exportTool = new DatabaseExportTool();
var result = await exportTool.InvokeAsync(@"{""database"":""data.db"",""table"":""users"",""format"":""json""}");
Constructors
- DatabaseExportTool()
Initializes a new instance with default options.
- DatabaseExportTool(DatabaseToolOptions)
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.