Edit a piece
update_pieceChange a piece's details: name, owned (true marks a saved shop item as bought), colour name, material, formality, warmth, sleeve, length, pattern, fit or brand. Needs the account connected with changes allowed.
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": {
"piece": "<piece>"
},
"name": "update_piece"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | ||
| name | No | ||
| brand | No | ||
| owned | No | true: the user has it (a saved shop item was bought). | |
| piece | Yes | The piece, by its id from get_closet (or its name). | |
| length | No | ||
| sleeve | No | ||
| warmth | No | ||
| pattern | No | ||
| material | No | ||
| formality | No | ||
| color_name | No |