set_rating
Assign a 0–5 star rating to an image by writing embedded XMP and the gThumb comment sidecar, keeping ratings consistent in the gThumb UI and modifying the file.
Instructions
Set the gThumb star rating (0-5) of an image: embedded XMP (exiftool) and the comment sidecar the gThumb UI reads. This modifies the file.
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": {
"path": "<path>",
"rating": "<rating>"
},
"name": "set_rating"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| rating | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |