confirm_template_input
Confirm and process template inputs after user validation, uploading files or storing content in memory while automatically updating compliance rule configurations to advance the workflow.
Instructions
Confirm and process template input after user validation.
CONFIRMATION PROCESSING (Enhanced with Automatic Rule Updates):
Handles final confirmation of template content
Uploads files for FILE dataType inputs
Stores content in memory for non-FILE inputs
MANDATORY step before proceeding to next input
NEW: Automatically updates the rule with new input after processing
Skips confirmation if the user accepts the suggested template
PROCESSING RULES (Enhanced):
FILE dataType: Upload content as file, return file URL
HTTP_CONFIG dataType: Upload content as file, return file URL
Non-FILE dataType: Store content in memory
Include metadata about confirmation and timestamp
NEW: Automatic rule update with new input data
AUTOMATIC RULE UPDATE PROCESS: After successful input processing, this tool automatically:
Fetches the current rule structure
Adds the new input to spec.inputs
Updates spec.inputsMeta__ with input metadata
Calls create_rule() to save the updated rule
Rule status will be auto-detected (DRAFT → collecting_inputs → READY_FOR_CREATION)
UI DISPLAY REQUIREMENT:
The file URL must ALWAYS be displayed to the user in the UI, allowing the user to view or download the file directly.
Args: rule_name: Descriptive name for the rule based on the user's use case. Note: Use the same rule name for all inputs that belong to this rule. Example: rule_name = "MeaningfulRuleName" task_name: Name of the task this input belongs to input_name: Name of the input parameter rule_input_name: Must be one of the values defined in the rule structure's inputs confirmed_content: The content user confirmed
Returns: Dict containing processing results (file URL or memory reference) and rule update status
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_name | Yes | ||
| task_name | Yes | ||
| rule_input_name | Yes | ||
| input_name | Yes | ||
| confirmed_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||