UpdateAssets Tool

Overview

Updates persistent assets from packaged assets on upgrades with dry-run capability.

Purpose

Select when asset changes (workflows, documentation, models) need refreshing after maenifold upgrades.

Key Features

Parameters

dryRun (optional)

Return Value

Returns UpdateAssetsResult with summary of added/updated files.

Usage Examples

CLI

Dry Run (Preview Changes)

Maenifold --tool UpdateAssets --payload '{"dryRun":true}'

Execute Update

Maenifold --tool UpdateAssets --payload '{"dryRun":false}'

Default (Dry Run)

Maenifold --tool UpdateAssets --payload '{}'

MCP

Dry Run (Preview)

{
  "dryRun": true
}

Execute Update

{
  "dryRun": false
}

Common Patterns

Safe Update Workflow

  1. Preview: Run with dryRun: true to see what would change
  2. Review: Check the summary of changes
  3. Apply: Run with dryRun: false to update assets

After maenifold Upgrade

# Check what assets need updating
Maenifold --tool UpdateAssets --payload '{"dryRun":true}'

# Apply updates
Maenifold --tool UpdateAssets --payload '{"dryRun":false}'

Integration Points

Best Practices

  1. Always dry-run first: Check what will change before applying
  2. Review changes: Examine the summary before executing
  3. After upgrades: Run after updating maenifold to get latest assets
  4. Version control: Consider backing up custom assets before updating

Troubleshooting

No Changes Detected

Permission Errors

Partial Updates

RTM Compliance