set-photo-metadata
Set a photo's title, description, or favorite flag in Apple Photos. Returns before/after values for easy revert, and validates the photo exists first.
Instructions
Use when: you want to set a photo's title, description, or favorite flag — captioning passes, marking the best shot of a burst, titling scans. Returns: uuid, updated (which fields were written), and the full before/after values of all three fields — so any change can be reverted by writing the before values back. Do not use when: you want keywords — use set-keywords (it has union semantics; this tool doesn't touch keywords); or you only want to READ metadata — use get-photo. Safety: WRITE tool — disabled unless APPLE_PHOTOS_MCP_ENABLE_WRITES=1 (run doctor to check). Metadata only — never touches the image asset, and only the fields you pass are modified (an empty string clears title/description). The target photo is validated to exist first. Drives Photos.app via AppleScript (requires macOS Automation permission). Writes target the library currently open in Photos.app.
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": {
"uuid": "<uuid>"
},
"name": "set-photo-metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Photo UUID (hex-with-dashes, as returned by query) | |
| title | No | New title (empty string clears it) | |
| favorite | No | Set or clear the favorite flag | |
| description | No | New description (empty string clears it) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | No | ||
| after | No | ||
| before | No | ||
| updated | No |