Save configuration file
csv2zugferd_config_file_createValidates a CSV-to-ZUGFeRD mapping configuration and saves it as UTF-8 without BOM to a target path, replacing files only with overwrite enabled. Returns the path, size, and CLI command.
Instructions
Validates configYaml (it must deserialize as a csv2zugferd configuration) and writes it to configPath as UTF-8 without BOM. An existing file is replaced only with overwrite: true; otherwise the call is rejected with file_exists and nothing is written. Returns the full path, the size and the csv2zugferd CLI command that uses the saved file for production runs. Does not run the mapping (use csv2zugferd_invoice_get first) and does not create XML or PDF files.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"configYaml": "<configYaml>",
"configPath": "<configPath>"
},
"name": "csv2zugferd_config_file_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csvPath | No | Optional CSV path inserted into the returned CLI command instead of a placeholder. | |
| overwrite | No | True replaces an existing file at configPath. Default false: an existing file is never touched (file_exists). | |
| configPath | Yes | Target file path, for example C:/invoices/config.yml. The directory must exist. | |
| configYaml | Yes | The YAML configuration to save (content of the file). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | Size of the written file in bytes (UTF-8 without BOM). | |
| cliCommand | Yes | Complete csv2zugferd CLI command for a production run with this configuration; placeholders in angle brackets mark paths that were not given. | |
| configPath | Yes | Full path of the written file. |