maket_image
List, view, import, and delete image assets with controlled metadata updates. Viewing an image is required before writing metadata.
Instructions
When to use: manage the asset library (images). view → meta is a required two-step: meta refuses any write without the context_token from the latest view call — proof the image was read before metadata is attributed.
Images live on disk under the assets dir; metadata lives in the store; both move together. list — list assets grouped by category; flags items missing metadata. view — load an asset inline (text + binary image) and return its context_token. MUST be called before meta. meta — write/update metadata; rejects without a current context_token. import — copy an asset in via url, path, or register-mode (filename-only for already-present files). Auto-optimises + thumbnails. delete — remove the file, thumbnail, and metadata row.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | For import: HTTP(S) URL to download from. | |
| path | No | For import: local filesystem path to copy from. | |
| tags | No | For meta/import: searchable tags. | |
| title | No | For meta/import: human title. | |
| action | Yes | Operation to run. See the tool description for the action table. | |
| credit | No | For meta/import: attribution / photographer credit. | |
| category | No | For list: filter to this category. For meta/import: category tag. | |
| filename | No | Asset filename. Required for view/meta/delete. For import: destination filename (required in register-mode, derived from url/path otherwise). | |
| overwrite | No | For import: overwrite an existing file with the same name. | |
| description | No | For meta/import: long prose. | |
| orientation | No | For meta/import: orientation hint (landscape/portrait/square). | |
| context_token | No | For meta (REQUIRED): token returned by the matching view call. Proves the image was read before its metadata is written. |