generate_custom_script
Create custom PowerShell scripts for system automation, file operations, and service management based on your requirements with optional logging and error handling.
Instructions
Generate a custom PowerShell script based on description.
Args:
description: Natural language description of what the script should do
script_type: Type of script to generate (file_ops, service_mgmt, etc.)
parameters: List of parameters the script should accept
include_logging: Whether to include logging functions
include_error_handling: Whether to include error handling
output_path: Where to save the generated script (optional)
timeout: Command timeout in seconds (1-300, default 60)
Returns:
Generated script content or path where script was saved
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | ||
| script_type | Yes | ||
| parameters | No | ||
| include_logging | No | ||
| include_error_handling | No | ||
| output_path | No | ||
| timeout | No |
Input Schema (JSON Schema)
{
"properties": {
"description": {
"title": "Description",
"type": "string"
},
"include_error_handling": {
"default": true,
"title": "Include Error Handling",
"type": "boolean"
},
"include_logging": {
"default": true,
"title": "Include Logging",
"type": "boolean"
},
"output_path": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Output Path"
},
"parameters": {
"anyOf": [
{
"items": {
"additionalProperties": true,
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Parameters"
},
"script_type": {
"title": "Script Type",
"type": "string"
},
"timeout": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": 60,
"title": "Timeout"
}
},
"required": [
"description",
"script_type"
],
"type": "object"
}