generate_module_with_user_confirmation
Generate a Facets module using FTF CLI with a mandatory dry run and user confirmation to prevent unintended changes.
Instructions
⚠️ IMPORTANT: REQUIRES USER CONFIRMATION ⚠️ This function performs an irreversible action
Tool to generate a new module using FTF CLI. Step 1 - ALWAYS use dry_run=True first. This is an irreversible action. Step 2 - Present the dry run output to the user in textual format. Step 3 - Ask if user will like to make any changes in passed arguments and modify them Step 4 - Call the tool without dry run
Args:
intent (str): The intent for the module.
flavor (str): The flavor of the module.
cloud (str): The cloud provider.
title (str): The title of the module.
description (str): The description of the module.
dry_run (bool): If True, returns a description of the generation without executing. MUST set to True initially.
working_dir (str, optional): Working directory where the module will be generated. If not provided, uses the default working directory configured for the MCP server.
Returns:
str: A JSON string with the output from the FTF command execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent | Yes | ||
| flavor | Yes | ||
| cloud | Yes | ||
| title | Yes | ||
| description | Yes | ||
| dry_run | No | ||
| working_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |