Record action
record_actionLogs why assets were changed—album moves, date fixes, rotations—with context for audit or undo, writing only the plugin's metadata key on each asset.
Instructions
Remember something the plugin did to assets and why, for audit or undo: which album they went into and from what prompt, what date they had before a fix, why they were rotated. Side effect: writes the plugin's metadata key on each asset; other apps' keys are untouched.
Args:
asset_ids: The assets the action touched.
action: Short verb-like label (e.g. 'added_to_album', 'date_fixed', 'rotated').
detail: Free text with the context worth keeping (album name, previous
value, the user's request).
Returns: JSON with success, the number of assets recorded, the action, and a
failed array of {asset_id, error} for any asset that could not be written.
Success is true only when nothing failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| detail | No | ||
| asset_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |