write_generic_file
Add supporting files such as Python or Bash scripts to a module, bypassing restrictions on .tf, facets.yaml, and README.md files.
Instructions
Writes a generic file to the module directory, except for .tf files, facets.yaml, or README.md. Can be used to add supporting files like Python or Bash scripts if needed by the module.
Fails if trying to write a forbidden file. Checks working directory as in other tools.
Args: module_path (str): Path to the module directory. file_name (str): Name of the file to write. content (str): Content to write to the file.
Returns: str: JSON string with success status, message, instructions, and optional error/data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module_path | Yes | ||
| file_name | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |