Create or update collection
save_collectionCreate or update a Medusa product collection: omit collection_id to create (title required) or include it to update, then add or remove product IDs.
Instructions
Without collection_id creates a collection (title required); with collection_id updates it. Can add or remove products (a product belongs to at most one collection).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| handle | No | ||
| metadata | No | Merged into existing metadata; an empty string deletes a key | |
| add_products | No | Product IDs to add | |
| collection_id | No | ||
| remove_products | No | Product IDs to remove |