StyleTwin
Outfits from clothes you own: your StyleTwin closet (wardrobe), saved outfits, calendar and weather.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"styletwin": {
"url": "https://api.styletwin.app/mcp"
}
}
}Puntos de conexión remotos
https://api.styletwin.app/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (22)
🟢get_closet(colour, formality, include_wishlist, limit, never_worn, ...)
Use this when the user asks what to wear, wants outfit ideas, or asks about their own clothes (their closet or wardrobe). Lists the clothes in the user's StyleTwin closet: each piece with its kind, colour (name, hex and family), material, how dressy and how warm it is, and how often and when it was last worn, as text and as JSON (structuredContent). Use it before suggesting outfits, so they are built from pieces the user really owns. Each piece has a short id in brackets, which the other tools take. 100 pieces per page (limit, up to 300; page for more), about 50 tokens each. For a big closet, ask summary first (counts by place, colour family, formality and warmth), then list only what you need with the filters and sort. Not for searching shops. Needs the user's StyleTwin account connected.
Esquema de entrada
{
"type": "object",
"properties": {
"colour": {
"description": "Only pieces of this colour family, judged from each piece's hex colour (so brown finds tan and chocolate too).",
"enum": [
"black",
"white",
"grey",
"beige",
"brown",
"red",
"pink",
"orange",
"yellow",
"green",
"blue",
"purple"
],
"type": "string"
},
"formality": {
"enum": [
"casual",
"smart",
"evening"
],
"type": "string"
},
"include_wishlist": {
"default": false,
"description": "Also list pieces the user saved from shops but doesn't own yet.",
"type": "boolean"
},
"limit": {
"default": 100,
"description": "Pieces per page.",
"maximum": 300,
"minimum": 1,
"type": "integer"
},
"never_worn": {
"default": false,
"description": "Only pieces never worn yet.",
"type": "boolean"
},
"not_worn_since": {
"description": "Only pieces not worn on or after this day (YYYY-MM-DD), never-worn ones included.",
"format": "date",
"type": "string"
},
"page": {
"default": 1,
"minimum": 1,
"type": "integer"
},
"search": {
"description": "Only pieces whose name, kind, colour, colour family, material or brand contains all these words, e.g. \"wool coat\". Kinds and colours are in English; names are in the user's language.",
"maxLength": 60,
"type": "string"
},
"slot": {
"description": "Only pieces worn here: top, bottom, dress, outer (coats and jackets), hat, bag, shoes, accessory.",
"enum": [
"top",
"bottom",
"dress",
"outer",
"hat",
"bag",
"shoes",
"accessory"
],
"type": "string"
},
"sort": {
"default": "place",
"description": "place (by where they are worn, then name), newest, most_worn, least_worn or longest_unworn.",
"enum": [
"place",
"newest",
"most_worn",
"least_worn",
"longest_unworn"
],
"type": "string"
},
"summary": {
"default": false,
"description": "Instead of pieces, counts by place, colour family, formality and warmth, and how many are unworn. Start here for a big closet.",
"type": "boolean"
},
"warmth": {
"enum": [
"light",
"mid",
"warm"
],
"type": "string"
}
},
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"matching": {
"minimum": 0,
"type": "integer"
},
"owned": {
"minimum": 0,
"type": "integer"
},
"page": {
"minimum": 1,
"type": "integer"
},
"pages": {
"minimum": 0,
"type": "integer"
},
"pieces": {
"items": {
"properties": {
"added_on": {
"format": "date",
"type": "string"
},
"brand": {
"type": "string"
},
"colour": {
"type": "string"
},
"colour_family": {
"enum": [
"black",
"white",
"grey",
"beige",
"brown",
"red",
"pink",
"orange",
"yellow",
"green",
"blue",
"purple"
],
"type": "string"
},
"colour_hex": {
"pattern": "^#[0-9A-Fa-f]{6}$",
"type": "string"
},
"fit": {
"type": "string"
},
"formality": {
"enum": [
"casual",
"smart",
"evening"
],
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"last_worn_on": {
"format": "date",
"type": "string"
},
"length": {
"type": "string"
},
"material": {
"type": "string"
},
"name": {
"type": "string"
},
"number": {
"minimum": 1,
"type": "integer"
},
"owned": {
"description": "In the closet to wear (starter samples too); false for a piece saved from a shop and not bought.",
"type": "boolean"
},
"pattern": {
"type": "string"
},
"picture_url": {
"type": "string"
},
"sample": {
"description": "A starter sample: a store piece the app picked to start the closet, usable in outfits until the user adds their own.",
"type": "boolean"
},
"sample_store": {
"type": "string"
},
"shop": {
"type": "object"
},
"short_id": {
"type": "string"
},
"sleeve": {
"type": "string"
},
"slot": {
"enum": [
"top",
"bottom",
"dress",
"outer",
"hat",
"bag",
"shoes",
"accessory"
],
"type": "string"
},
"warmth": {
"enum": [
"light",
"mid",
"warm"
],
"type": "string"
},
"worn_count": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"id",
"short_id",
"name",
"slot",
"owned"
],
"type": "object"
},
"type": "array"
},
"sort": {
"enum": [
"place",
"newest",
"most_worn",
"least_worn",
"longest_unworn"
],
"type": "string"
},
"summary": {
"type": "object"
},
"waiting_from_chats": {
"description": "Pieces chats sent that wait in the app: not in the closet until the user saves them.",
"items": {
"properties": {
"sent_at": {
"type": "string"
},
"what": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"required": [
"owned",
"matching",
"pieces"
]
}🟢get_saved_looks(limit, occasion)
Use this when the user asks about outfits they saved, or what to wear for an occasion they may have a saved outfit for, or about their groups of outfits (trips, capsules). Lists the outfits the user saved in StyleTwin, each with its short id, its pieces by name, its occasion and when it was last worn, and the groups (collections) with the outfits in each. Needs the user's StyleTwin account connected.
Esquema de entrada
{
"type": "object",
"properties": {
"limit": {
"default": 40,
"description": "Newest first; at most this many.",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"occasion": {
"description": "Only outfits saved for this occasion.",
"enum": [
"work",
"day_out",
"evening_out",
"dinner",
"workout",
"date",
"meeting",
"travel",
"event"
],
"type": "string"
}
},
"additionalProperties": false
}🟢get_calendar(days, from)
Use this when the user asks what they planned or wore on a day, or before planning outfits for the coming days. Shows the user's StyleTwin calendar for a span of days: the moments they planned (work, dinner, a trip...) with the outfit picked for each, and what they wore on past days. Needs the user's StyleTwin account connected.
Esquema de entrada
{
"type": "object",
"properties": {
"days": {
"default": 7,
"description": "How many days from it.",
"maximum": 14,
"minimum": 1,
"type": "integer"
},
"from": {
"description": "The first day, YYYY-MM-DD, in the user's time zone. Default: today.",
"format": "date",
"type": "string"
}
},
"additionalProperties": false
}🟡save_look(name, note, occasion, pieces)
Save an outfit to the user's StyleTwin closet from pieces they own (ids from get_closet, or names): one piece per place (top, bottom or a dress, outer layer, shoes, bag, hat), plus any accessories. It appears under Outfits in the app. Needs the account connected with changes allowed.
Esquema de entrada
{
"type": "object",
"properties": {
"name": {
"description": "The outfit's name, e.g. \"Office Monday\". Default: from its pieces.",
"maxLength": 80,
"type": "string"
},
"note": {
"description": "Why it works, in a sentence (optional).",
"maxLength": 200,
"type": "string"
},
"occasion": {
"description": "work or day_out is the day's main outfit; the others are moments of the day.",
"enum": [
"work",
"day_out",
"evening_out",
"dinner",
"workout",
"date",
"meeting",
"travel",
"event"
],
"type": "string"
},
"pieces": {
"description": "The pieces, by the ids get_closet shows (or their names).",
"items": {
"type": "string"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
}
},
"required": [
"pieces"
],
"additionalProperties": false
}🔴update_look(look, name, pieces)
Rename a saved outfit, or replace its pieces (ids from get_saved_looks and get_closet). Needs the account connected with changes allowed.
Esquema de entrada
{
"type": "object",
"properties": {
"look": {
"description": "The saved outfit, by its id from get_saved_looks (or its name).",
"type": "string"
},
"name": {
"description": "A new name.",
"maxLength": 80,
"type": "string"
},
"pieces": {
"description": "All its pieces, replacing the ones it has.",
"items": {
"type": "string"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
}
},
"required": [
"look"
],
"additionalProperties": false
}🔴delete_look(look)
Delete one of the user's saved outfits (its pieces stay in the closet). Confirm with the user first: it can't be undone. Needs the account connected with changes allowed.
Esquema de entrada
{
"type": "object",
"properties": {
"look": {
"description": "The saved outfit, by its id from get_saved_looks (or its name).",
"type": "string"
}
},
"required": [
"look"
],
"additionalProperties": false
}🔴set_week(work_days)
Use this when the user says which weekdays they work, from now on ("I work from home on Fridays", "I started a 4-day week"): sets the weekdays StyleTwin's Today plans as work days; the other days are days out. For one day off or a trip, use plan_outfit with occasion day_out for those days. Needs the account connected with changes allowed.
Esquema de entrada
{
"type": "object",
"properties": {
"work_days": {
"description": "The weekdays that are work days, 1 = Monday … 7 = Sunday (empty: no work days).",
"items": {
"maximum": 7,
"minimum": 1,
"type": "integer"
},
"maxItems": 7,
"type": "array"
}
},
"required": [
"work_days"
],
"additionalProperties": false
}🔴plan_outfit(date, look, name, occasion, pieces, ...)
Put an outfit on the user's StyleTwin calendar for a day: the day's main outfit (occasion work or day_out, or none), or a moment such as dinner at 19:00 with its outfit. Give a saved outfit (look) or pieces. To say a day is a day off, a travel day or a work day without choosing its outfit, send occasion day_out or work alone. Needs the account connected with changes allowed.
Esquema de entrada
{
"type": "object",
"properties": {
"date": {
"description": "The day, YYYY-MM-DD, in the user's time zone (up to two years ahead).",
"format": "date",
"type": "string"
},
"look": {
"description": "A saved outfit (id or name) to wear.",
"type": "string"
},
"name": {
"description": "For a moment: its name, e.g. \"Anna's birthday\".",
"maxLength": 60,
"type": "string"
},
"occasion": {
"description": "work or day_out is the day's main outfit; the others are moments of the day.",
"enum": [
"work",
"day_out",
"evening_out",
"dinner",
"workout",
"date",
"meeting",
"travel",
"event"
],
"type": "string"
},
"pieces": {
"description": "Or the pieces to wear (ids or names).",
"items": {
"type": "string"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
},
"time": {
"description": "For a moment: its time, HH:MM.",
"pattern": "^[0-2][0-9]:[0-5][0-9]$",
"type": "string"
}
},
"required": [
"date"
],
"additionalProperties": false
}🔴remove_from_plan(date, moment)
Remove a planned moment (by its occasion, name or time), the day's main outfit (moment "routine"), or everything planned for a day (no moment). Confirm with the user first. Needs the account connected with changes allowed.
Esquema de entrada
{
"type": "object",
"properties": {
"date": {
"description": "The day, YYYY-MM-DD.",
"format": "date",
"type": "string"
},
"moment": {
"description": "Which plan: \"routine\" for the day's main outfit, or a moment's occasion, name or time. Leave out to clear the whole day.",
"type": "string"
}
},
"required": [
"date"
],
"additionalProperties": false
}🔴log_worn(date, look, pieces)
Record what the user wore on a day (today or earlier): a saved outfit (look) or pieces. It replaces that day's main worn outfit and updates the pieces' wear counts. Needs the account connected with changes allowed.
Esquema de entrada
{
"type": "object",
"properties": {
"date": {
"description": "The day, YYYY-MM-DD. Default: today.",
"format": "date",
"type": "string"
},
"look": {
"description": "A saved outfit (id or name) that was worn.",
"type": "string"
},
"pieces": {
"description": "Or the pieces that were worn (ids or names).",
"items": {
"type": "string"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
}
},
"additionalProperties": false
}🔴update_piece(brand, color_name, fit, formality, length, ...)
Change 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.
Esquema de entrada
{
"type": "object",
"properties": {
"brand": {
"maxLength": 40,
"type": "string"
},
"color_name": {
"maxLength": 40,
"type": "string"
},
"fit": {
"enum": [
"slim",
"regular",
"relaxed",
"oversized"
],
"type": "string"
},
"formality": {
"enum": [
"casual",
"smart",
"evening"
],
"type": "string"
},
"length": {
"enum": [
"cropped",
"regular",
"long"
],
"type": "string"
},
"material": {
"maxLength": 40,
"type": "string"
},
"name": {
"maxLength": 80,
"type": "string"
},
"owned": {
"description": "true: the user has it (a saved shop item was bought).",
"type": "boolean"
},
"pattern": {
"enum": [
"solid",
"striped",
"checked",
"dotted",
"floral",
"print"
],
"type": "string"
},
"piece": {
"description": "The piece, by its id from get_closet (or its name).",
"type": "string"
},
"sleeve": {
"enum": [
"sleeveless",
"short",
"three_quarter",
"long"
],
"type": "string"
},
"warmth": {
"enum": [
"light",
"mid",
"warm"
],
"type": "string"
}
},
"required": [
"piece"
],
"additionalProperties": false
}🔴delete_piece(piece)
Delete a piece from the user's closet. Saved outfits that had it are kept without it (or deleted when nothing wearable is left). Confirm with the user first: it can't be undone. Needs the account connected with changes allowed.
Esquema de entrada
{
"type": "object",
"properties": {
"piece": {
"description": "The piece, by its id from get_closet (or its name).",
"type": "string"
}
},
"required": [
"piece"
],
"additionalProperties": false
}🔴save_collection(add, looks, name, remove, rename_to)
Make or change a named group of saved outfits, such as a trip ("Rome, 4 days") or a capsule: looks sets the whole group (a group with that name is replaced), add and remove change an existing group, rename_to renames it. get_saved_looks lists the groups. Needs the account connected with changes allowed.
Esquema de entrada
{
"type": "object",
"properties": {
"add": {
"description": "Saved outfits to add to the existing group.",
"items": {
"type": "string"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
},
"looks": {
"description": "All the saved outfits in it (ids or names from get_saved_looks): makes the group, or replaces what it holds.",
"items": {
"type": "string"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
},
"name": {
"description": "The group's name, e.g. \"Rome, 4 days\"; an existing group's name to change it.",
"maxLength": 60,
"type": "string"
},
"remove": {
"description": "Saved outfits to take out of the existing group (they stay saved).",
"items": {
"type": "string"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
},
"rename_to": {
"description": "A new name for the existing group.",
"maxLength": 60,
"type": "string"
}
},
"required": [
"name"
],
"additionalProperties": false
}🟢show_outfit(date, inline, look, pieces, size, ...)
Use this every time you suggest an outfit or the user asks to see one: it shows the user a StyleTwin card of the outfit in their own pieces, where they can swap a piece, save the outfit or plan it for a day with one tap. Send a saved outfit (look) or the pieces you chose (one piece per place: top, bottom or a dress, outer layer, shoes, bag, hat; accessories can be several), a short title ("Friday dinner") and the day it is for. With Share closet pictures on, the card has the user's own pictures, and the answer also has one numbered JPEG of them with a 24-hour link (size: small = 512 px wide, about 350 tokens in Claude; medium = 1024 px, the default, about 900 to 1,400 tokens; large = 1536 px, for the link; inline: false returns only the link and JSON). Without it, the card shows each piece by name and colour, and the answer says how to turn pictures on. Needs the account connected.
Esquema de entrada
{
"type": "object",
"properties": {
"date": {
"description": "The day the outfit is for, YYYY-MM-DD: the card's Plan this day starts on it.",
"format": "date",
"type": "string"
},
"inline": {
"default": true,
"description": "Put the picture in the answer (you see it). false: only the link and JSON, which costs no image tokens.",
"type": "boolean"
},
"look": {
"description": "A saved outfit (id or name).",
"type": "string"
},
"pieces": {
"description": "Or the pieces (ids or names), up to 12.",
"items": {
"type": "string"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
},
"size": {
"default": "medium",
"description": "512, 1024 or 1536 px wide.",
"enum": [
"small",
"medium",
"large"
],
"type": "string"
},
"title": {
"description": "A short title for the card, e.g. \"Friday dinner\". Default: a saved outfit's name.",
"maxLength": 60,
"type": "string"
}
},
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"date": {
"description": "The day the outfit is for.",
"format": "date",
"type": "string"
},
"height": {
"type": "integer"
},
"matching": {
"minimum": 0,
"type": "integer"
},
"page": {
"minimum": 1,
"type": "integer"
},
"pages": {
"minimum": 0,
"type": "integer"
},
"picture_url": {
"description": "The drawn picture, for 24 hours.",
"type": "string"
},
"pictures_shared": {
"description": "The pieces carry the user's own pictures.",
"type": "boolean"
},
"pieces": {
"items": {
"properties": {
"added_on": {
"format": "date",
"type": "string"
},
"brand": {
"type": "string"
},
"colour": {
"type": "string"
},
"colour_family": {
"enum": [
"black",
"white",
"grey",
"beige",
"brown",
"red",
"pink",
"orange",
"yellow",
"green",
"blue",
"purple"
],
"type": "string"
},
"colour_hex": {
"pattern": "^#[0-9A-Fa-f]{6}$",
"type": "string"
},
"fit": {
"type": "string"
},
"formality": {
"enum": [
"casual",
"smart",
"evening"
],
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"last_worn_on": {
"format": "date",
"type": "string"
},
"length": {
"type": "string"
},
"material": {
"type": "string"
},
"name": {
"type": "string"
},
"number": {
"minimum": 1,
"type": "integer"
},
"owned": {
"description": "In the closet to wear (starter samples too); false for a piece saved from a shop and not bought.",
"type": "boolean"
},
"pattern": {
"type": "string"
},
"picture_url": {
"type": "string"
},
"sample": {
"description": "A starter sample: a store piece the app picked to start the closet, usable in outfits until the user adds their own.",
"type": "boolean"
},
"sample_store": {
"type": "string"
},
"shop": {
"type": "object"
},
"short_id": {
"type": "string"
},
"sleeve": {
"type": "string"
},
"slot": {
"enum": [
"top",
"bottom",
"dress",
"outer",
"hat",
"bag",
"shoes",
"accessory"
],
"type": "string"
},
"warmth": {
"enum": [
"light",
"mid",
"warm"
],
"type": "string"
},
"worn_count": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"id",
"short_id",
"name",
"slot",
"owned"
],
"type": "object"
},
"type": "array"
},
"title": {
"type": "string"
},
"view": {
"description": "What the StyleTwin card shows.",
"enum": [
"outfit",
"closet",
"choices"
],
"type": "string"
},
"width": {
"type": "integer"
}
},
"required": [
"pieces"
]
}🟢show_closet(colour, columns, formality, include_wishlist, inline, ...)
Show the user their closet (or the pieces matching get_closet's filters) as a StyleTwin card they can browse and pick a piece from to build an outfit around, 30 pieces a page, with each piece's name and short id (text and JSON). With Share closet pictures on, it also gives numbered contact sheets of their own pieces with a 24-hour link (size: small = 128 px cells, a 640 x 768 sheet, about 650 tokens in Claude; medium = 200 px, 1000 x 1200, about 1,600 tokens, the default; large = 300 px, for the link; columns: 3 to 8, default 5; inline: false returns only the link and JSON). Without it, the card shows each piece by name and colour. Needs the account connected.
Esquema de entrada
{
"type": "object",
"properties": {
"colour": {
"description": "Only pieces of this colour family, judged from each piece's hex colour (so brown finds tan and chocolate too).",
"enum": [
"black",
"white",
"grey",
"beige",
"brown",
"red",
"pink",
"orange",
"yellow",
"green",
"blue",
"purple"
],
"type": "string"
},
"columns": {
"default": 5,
"maximum": 8,
"minimum": 3,
"type": "integer"
},
"formality": {
"enum": [
"casual",
"smart",
"evening"
],
"type": "string"
},
"include_wishlist": {
"default": false,
"description": "Also list pieces the user saved from shops but doesn't own yet.",
"type": "boolean"
},
"inline": {
"default": true,
"description": "Put the picture in the answer (you see it). false: only the link and JSON, which costs no image tokens.",
"type": "boolean"
},
"never_worn": {
"default": false,
"description": "Only pieces never worn yet.",
"type": "boolean"
},
"not_worn_since": {
"description": "Only pieces not worn on or after this day (YYYY-MM-DD), never-worn ones included.",
"format": "date",
"type": "string"
},
"page": {
"default": 1,
"description": "Which sheet of 30 pieces.",
"minimum": 1,
"type": "integer"
},
"search": {
"description": "Only pieces whose name, kind, colour, colour family, material or brand contains all these words, e.g. \"wool coat\". Kinds and colours are in English; names are in the user's language.",
"maxLength": 60,
"type": "string"
},
"size": {
"default": "medium",
"description": "Cells of 128, 200 or 300 px.",
"enum": [
"small",
"medium",
"large"
],
"type": "string"
},
"slot": {
"description": "Only pieces worn here: top, bottom, dress, outer (coats and jackets), hat, bag, shoes, accessory.",
"enum": [
"top",
"bottom",
"dress",
"outer",
"hat",
"bag",
"shoes",
"accessory"
],
"type": "string"
},
"sort": {
"default": "place",
"description": "place (by where they are worn, then name), newest, most_worn, least_worn or longest_unworn.",
"enum": [
"place",
"newest",
"most_worn",
"least_worn",
"longest_unworn"
],
"type": "string"
},
"warmth": {
"enum": [
"light",
"mid",
"warm"
],
"type": "string"
}
},
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"date": {
"description": "The day the outfit is for.",
"format": "date",
"type": "string"
},
"height": {
"type": "integer"
},
"matching": {
"minimum": 0,
"type": "integer"
},
"page": {
"minimum": 1,
"type": "integer"
},
"pages": {
"minimum": 0,
"type": "integer"
},
"picture_url": {
"description": "The drawn picture, for 24 hours.",
"type": "string"
},
"pictures_shared": {
"description": "The pieces carry the user's own pictures.",
"type": "boolean"
},
"pieces": {
"items": {
"properties": {
"added_on": {
"format": "date",
"type": "string"
},
"brand": {
"type": "string"
},
"colour": {
"type": "string"
},
"colour_family": {
"enum": [
"black",
"white",
"grey",
"beige",
"brown",
"red",
"pink",
"orange",
"yellow",
"green",
"blue",
"purple"
],
"type": "string"
},
"colour_hex": {
"pattern": "^#[0-9A-Fa-f]{6}$",
"type": "string"
},
"fit": {
"type": "string"
},
"formality": {
"enum": [
"casual",
"smart",
"evening"
],
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"last_worn_on": {
"format": "date",
"type": "string"
},
"length": {
"type": "string"
},
"material": {
"type": "string"
},
"name": {
"type": "string"
},
"number": {
"minimum": 1,
"type": "integer"
},
"owned": {
"description": "In the closet to wear (starter samples too); false for a piece saved from a shop and not bought.",
"type": "boolean"
},
"pattern": {
"type": "string"
},
"picture_url": {
"type": "string"
},
"sample": {
"description": "A starter sample: a store piece the app picked to start the closet, usable in outfits until the user adds their own.",
"type": "boolean"
},
"sample_store": {
"type": "string"
},
"shop": {
"type": "object"
},
"short_id": {
"type": "string"
},
"sleeve": {
"type": "string"
},
"slot": {
"enum": [
"top",
"bottom",
"dress",
"outer",
"hat",
"bag",
"shoes",
"accessory"
],
"type": "string"
},
"warmth": {
"enum": [
"light",
"mid",
"warm"
],
"type": "string"
},
"worn_count": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"id",
"short_id",
"name",
"slot",
"owned"
],
"type": "object"
},
"type": "array"
},
"title": {
"type": "string"
},
"view": {
"description": "What the StyleTwin card shows.",
"enum": [
"outfit",
"closet",
"choices"
],
"type": "string"
},
"width": {
"type": "integer"
}
},
"required": [
"pieces"
]
}🟢get_piece_pictures(inline, pieces)
Get each piece's own picture from the user's StyleTwin closet: a PNG cut-out on a transparent background (or a JPEG photo), up to 768 px, as 24-hour links (and inline with inline: true, up to 6, about 800 tokens each in Claude). Use it when the user wants to see or keep the pictures of particular pieces. Up to 24 pieces by id. Needs the account connected and Share closet pictures turned on.
Esquema de entrada
{
"type": "object",
"properties": {
"inline": {
"default": false,
"description": "Put the picture in the answer (you see it). false: only the link and JSON, which costs no image tokens.",
"type": "boolean"
},
"pieces": {
"description": "The pieces, by the ids get_closet shows (or names).",
"items": {
"type": "string"
},
"maxItems": 24,
"minItems": 1,
"type": "array"
}
},
"required": [
"pieces"
],
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"date": {
"description": "The day the outfit is for.",
"format": "date",
"type": "string"
},
"height": {
"type": "integer"
},
"matching": {
"minimum": 0,
"type": "integer"
},
"page": {
"minimum": 1,
"type": "integer"
},
"pages": {
"minimum": 0,
"type": "integer"
},
"picture_url": {
"description": "The drawn picture, for 24 hours.",
"type": "string"
},
"pictures_shared": {
"description": "The pieces carry the user's own pictures.",
"type": "boolean"
},
"pieces": {
"items": {
"properties": {
"added_on": {
"format": "date",
"type": "string"
},
"brand": {
"type": "string"
},
"colour": {
"type": "string"
},
"colour_family": {
"enum": [
"black",
"white",
"grey",
"beige",
"brown",
"red",
"pink",
"orange",
"yellow",
"green",
"blue",
"purple"
],
"type": "string"
},
"colour_hex": {
"pattern": "^#[0-9A-Fa-f]{6}$",
"type": "string"
},
"fit": {
"type": "string"
},
"formality": {
"enum": [
"casual",
"smart",
"evening"
],
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"last_worn_on": {
"format": "date",
"type": "string"
},
"length": {
"type": "string"
},
"material": {
"type": "string"
},
"name": {
"type": "string"
},
"number": {
"minimum": 1,
"type": "integer"
},
"owned": {
"description": "In the closet to wear (starter samples too); false for a piece saved from a shop and not bought.",
"type": "boolean"
},
"pattern": {
"type": "string"
},
"picture_url": {
"type": "string"
},
"sample": {
"description": "A starter sample: a store piece the app picked to start the closet, usable in outfits until the user adds their own.",
"type": "boolean"
},
"sample_store": {
"type": "string"
},
"shop": {
"type": "object"
},
"short_id": {
"type": "string"
},
"sleeve": {
"type": "string"
},
"slot": {
"enum": [
"top",
"bottom",
"dress",
"outer",
"hat",
"bag",
"shoes",
"accessory"
],
"type": "string"
},
"warmth": {
"enum": [
"light",
"mid",
"warm"
],
"type": "string"
},
"worn_count": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"id",
"short_id",
"name",
"slot",
"owned"
],
"type": "object"
},
"type": "array"
},
"title": {
"type": "string"
},
"view": {
"description": "What the StyleTwin card shows.",
"enum": [
"outfit",
"closet",
"choices"
],
"type": "string"
},
"width": {
"type": "integer"
}
},
"required": [
"pieces"
]
}🟢card_choices(exclude, slot)
For the StyleTwin outfit card only (the card calls it when the user taps a piece to swap): the user's own pieces of one kind, with their pictures. To change an outfit yourself, use get_closet.
Esquema de entrada
{
"type": "object",
"properties": {
"exclude": {
"description": "Pieces not to offer (the outfit's own), by id.",
"items": {
"type": "string"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
},
"slot": {
"description": "The kind of piece being swapped.",
"enum": [
"hat",
"outer",
"top",
"dress",
"bottom",
"bag",
"shoes"
],
"type": "string"
}
},
"required": [
"slot"
],
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"date": {
"description": "The day the outfit is for.",
"format": "date",
"type": "string"
},
"height": {
"type": "integer"
},
"matching": {
"minimum": 0,
"type": "integer"
},
"page": {
"minimum": 1,
"type": "integer"
},
"pages": {
"minimum": 0,
"type": "integer"
},
"picture_url": {
"description": "The drawn picture, for 24 hours.",
"type": "string"
},
"pictures_shared": {
"description": "The pieces carry the user's own pictures.",
"type": "boolean"
},
"pieces": {
"items": {
"properties": {
"added_on": {
"format": "date",
"type": "string"
},
"brand": {
"type": "string"
},
"colour": {
"type": "string"
},
"colour_family": {
"enum": [
"black",
"white",
"grey",
"beige",
"brown",
"red",
"pink",
"orange",
"yellow",
"green",
"blue",
"purple"
],
"type": "string"
},
"colour_hex": {
"pattern": "^#[0-9A-Fa-f]{6}$",
"type": "string"
},
"fit": {
"type": "string"
},
"formality": {
"enum": [
"casual",
"smart",
"evening"
],
"type": "string"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"last_worn_on": {
"format": "date",
"type": "string"
},
"length": {
"type": "string"
},
"material": {
"type": "string"
},
"name": {
"type": "string"
},
"number": {
"minimum": 1,
"type": "integer"
},
"owned": {
"description": "In the closet to wear (starter samples too); false for a piece saved from a shop and not bought.",
"type": "boolean"
},
"pattern": {
"type": "string"
},
"picture_url": {
"type": "string"
},
"sample": {
"description": "A starter sample: a store piece the app picked to start the closet, usable in outfits until the user adds their own.",
"type": "boolean"
},
"sample_store": {
"type": "string"
},
"shop": {
"type": "object"
},
"short_id": {
"type": "string"
},
"sleeve": {
"type": "string"
},
"slot": {
"enum": [
"top",
"bottom",
"dress",
"outer",
"hat",
"bag",
"shoes",
"accessory"
],
"type": "string"
},
"warmth": {
"enum": [
"light",
"mid",
"warm"
],
"type": "string"
},
"worn_count": {
"minimum": 0,
"type": "integer"
}
},
"required": [
"id",
"short_id",
"name",
"slot",
"owned"
],
"type": "object"
},
"type": "array"
},
"title": {
"type": "string"
},
"view": {
"description": "What the StyleTwin card shows.",
"enum": [
"outfit",
"closet",
"choices"
],
"type": "string"
},
"width": {
"type": "integer"
}
},
"required": [
"pieces"
]
}🟡add_to_closet(image, image_base64, image_url, note, piece, ...)
Send a piece to the user's StyleTwin closet: a shop's product page (shop_link) and/or one picture of it (image, image_url or image_base64), with what it is (piece) and the product's details (product). Use this when the user wants a piece from this chat in StyleTwin, one they own or one they like in a shop. The app adds it the next time the user opens StyleTwin, or shows it at the top of the Closet tab for them to add. Needs Allow changes for this chat in the app.
Esquema de entrada
{
"type": "object",
"properties": {
"image": {
"description": "A photo the user attached in this chat, as taken: their own photo of the piece, or a photo of them in it (ChatGPT fills it in). StyleTwin cuts the piece out on the phone.",
"properties": {
"download_url": {
"type": "string"
},
"file_id": {
"type": "string"
},
"file_name": {
"type": "string"
},
"mime_type": {
"type": "string"
}
},
"type": "object"
},
"image_base64": {
"contentEncoding": "base64",
"contentMediaType": "image/jpeg",
"description": "A small unedited picture inline: 768 px JPEG, quality 80, under 500 KB.",
"maxLength": 700000,
"type": "string"
},
"image_url": {
"description": "A direct https link to the shop's own product photo (as the shop shows it) or to the user's photo. An unedited picture: StyleTwin cuts the piece out itself. JPEG, PNG or WebP.",
"format": "uri",
"maxLength": 2048,
"type": "string"
},
"note": {
"description": "What it is, for the user, e.g. \"Linen shirt from Zara, size M\".",
"maxLength": 200,
"type": "string"
},
"piece": {
"additionalProperties": false,
"description": "What the piece is. With a picture, the app adds it by itself.",
"properties": {
"kind": {
"description": "e.g. Sneakers, Jeans, T-shirt, Coat, Handbag, Sunglasses.",
"maxLength": 40,
"type": "string"
},
"name": {
"description": "What the closet calls it, e.g. \"adidas Samba OG\".",
"maxLength": 60,
"type": "string"
},
"owned": {
"description": "The user already has it. Default false: a shop product is saved as a store item.",
"type": "boolean"
},
"slot": {
"enum": [
"hat",
"outer",
"top",
"dress",
"bottom",
"bag",
"shoes",
"accessory"
],
"type": "string"
}
},
"required": [
"slot"
],
"type": "object"
},
"product": {
"additionalProperties": false,
"description": "What you know about the product on shop_link, kept with the piece.",
"properties": {
"brand": {
"maxLength": 80,
"type": "string"
},
"currency": {
"description": "ISO 4217, e.g. EUR.",
"maxLength": 3,
"minLength": 3,
"type": "string"
},
"price": {
"description": "The price shown, e.g. 120 or \"119.95\".",
"type": [
"number",
"string"
]
},
"size": {
"description": "The size the user picked, if any.",
"maxLength": 20,
"type": "string"
},
"title": {
"description": "The product's name, e.g. \"Samba OG\".",
"maxLength": 200,
"type": "string"
}
},
"required": [
"title"
],
"type": "object"
},
"shop_link": {
"description": "A shop's product page. Send it with image_url (the product photo) when you have it.",
"format": "uri",
"maxLength": 2048,
"type": "string"
}
},
"additionalProperties": false
}🟡start_upload(note)
Get a one-time address (15 minutes) to upload a picture to the user's StyleTwin with an HTTP PUT. For clients that can make HTTP requests and have a picture file to send. The upload reaches the user's StyleTwin like add_to_closet. Needs Allow changes for this chat in the app.
Esquema de entrada
{
"type": "object",
"properties": {
"note": {
"description": "What it is, for the user, e.g. \"Linen shirt from Zara, size M\".",
"maxLength": 200,
"type": "string"
}
},
"additionalProperties": false
}🟢get_weather_for_outfit(date, days, place, timezone)
Use this when deciding what to wear on a day, today or up to 9 days ahead. Gets the weather forecast for a town or city by morning, afternoon and evening: temperature, feels-like, rain and wind. Not for weather questions that aren't about clothes. Works without a StyleTwin account.
Esquema de entrada
{
"type": "object",
"properties": {
"date": {
"description": "The first day, YYYY-MM-DD in the place's time zone. Default: today.",
"format": "date",
"type": "string"
},
"days": {
"default": 1,
"description": "How many days from it.",
"maximum": 3,
"minimum": 1,
"type": "integer"
},
"place": {
"description": "The town or city, with its country when the name is common, e.g. \"Porto, Portugal\".",
"maxLength": 100,
"minLength": 2,
"type": "string"
},
"timezone": {
"description": "The place's IANA time zone, e.g. \"Europe/Lisbon\" or \"America/New_York\".",
"type": "string"
}
},
"required": [
"place",
"timezone"
],
"additionalProperties": false
}🟢styletwin_help(topic)
Step-by-step instructions for doing something in the StyleTwin app: add_pieces, try_on, save_outfit, edit_or_delete_piece, delete_outfit, plan_a_day, log_what_i_wore, trips, credits, ai_chats, privacy. Use it when the user asks how to do something, or for what this chat can't do itself (adding pieces, try-on pictures). Works without a StyleTwin account.
Esquema de entrada
{
"type": "object",
"properties": {
"topic": {
"description": "What the user wants to do.",
"enum": [
"add_pieces",
"try_on",
"save_outfit",
"edit_or_delete_piece",
"delete_outfit",
"plan_a_day",
"log_what_i_wore",
"trips",
"credits",
"ai_chats",
"privacy"
],
"type": "string"
}
},
"additionalProperties": false
}🟢about_styletwin
Use this when the user asks what StyleTwin is or how to connect it, or doesn't have the app yet. What the StyleTwin app is, what this connector can do in the chat, how the user connects their closet, and where to download the app (iPhone, iPad, Android). Works without a StyleTwin account.
Esquema de entrada
{
"type": "object",
"properties": {},
"additionalProperties": false
}Comunidad
Evidencia