Update stack
update_stackChange the cover asset of a photo stack so the library displays a different image, updating the stack on the server.
Instructions
Change which asset fronts a stack (the one the library shows). Side effect: updates the stack on the server.
Args:
stack_id: The stack to update.
primary_asset_id: The asset that should become the cover. It must already
belong to the stack.
Returns: JSON with the updated stack.
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": {
"stack_id": "<stack_id>",
"primary_asset_id": "<primary_asset_id>"
},
"name": "update_stack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack_id | Yes | ||
| primary_asset_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |