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
- Dry-run mode to preview changes before applying
- Detailed summary of modifications
- Explicit refresh mechanism after deployment
- Error reporting if refresh encounters issues
Parameters
dryRun (optional)
- Type: boolean
- Default: true
- Description: Preview changes without modifying files. Set to false to apply updates.
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
- Preview: Run with
dryRun: true to see what would change
- Review: Check the summary of changes
- 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
- Integrates with
AssetManager for asset initialization
- Works with workflows, documentation, and model assets
- Called after maenifold upgrades to refresh persistent assets
Best Practices
- Always dry-run first: Check what will change before applying
- Review changes: Examine the summary before executing
- After upgrades: Run after updating maenifold to get latest assets
- Version control: Consider backing up custom assets before updating
Troubleshooting
No Changes Detected
- Assets may already be up to date
- Check that packaged assets exist in the installation
Permission Errors
- Ensure write permissions to asset directories
- Check file locks on existing assets
Partial Updates
- Review error messages in the result
- Some files may have updated while others failed
- Re-run to attempt failed updates
- GetConfig: Check asset paths and configuration
- MemoryStatus: Verify asset counts after update
RTM Compliance
- UseStructuredContent: true
- Destructive: false (dry-run), true (execute)
- ReadOnly: false
- Title: “Update Assets”