create_csv
Create CSV files with custom headers and optional initial data for structured data storage and management.
Instructions
Create a new CSV file with headers and optional initial data.
Args:
filename: Name of the CSV file to create (without .csv extension)
headers: List of column headers
data: Optional list of rows, where each row is a list of values
Returns:
Dictionary with creation results and file information
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | No | ||
filename | Yes | ||
headers | Yes |
Input Schema (JSON Schema)
{
"properties": {
"data": {
"anyOf": [
{
"items": {
"items": {},
"type": "array"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Data"
},
"filename": {
"title": "Filename",
"type": "string"
},
"headers": {
"items": {
"type": "string"
},
"title": "Headers",
"type": "array"
}
},
"required": [
"filename",
"headers"
],
"type": "object"
}