create_worker_from_template
Create a scheduled automation worker from prebuilt templates for backup, cleanup, monitoring, and email reports.
Instructions
Create a worker using a built-in template. Template types: folder_backup (source, dest, keep, summary_email), file_cleanup (folder, pattern, days, summary_email), folder_watcher (watch, rules as [{ext, dest, email_to}]), uptime_check (url, log_file, alert_email), open_url (url), run_and_email (script_path, output_file, email_to). Generated scripts use stdlib only.
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": {
"template_type": "<template_type>",
"name": "<name>",
"sched_type": "<sched_type>",
"sched_value": "<sched_value>",
"config": "<config>"
},
"name": "create_worker_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| config | Yes | Template-specific config fields | |
| sched_type | Yes | ||
| sched_value | Yes | ||
| template_type | Yes |