Update theme
update_themePartially updates a theme by id. tokens and customFonts each replace the stored value wholesale — send the full object, not just the changed keys. Requires the Build plan or higher.
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": {
"id": "<id>"
},
"name": "update_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The theme id, as returned by list_themes or create_theme. | |
| name | No | New theme name. Omit to leave it unchanged. | |
| tokens | No | Replaces the theme's whole tokens object, so send every token you want to keep. Omit to leave the design unchanged. | |
| customFonts | No | Replaces the theme's list of self-hosted fonts ({ name, url } each). Omit to leave it unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| tokens | Yes | The theme's design tokens: concept, palette, colours, fonts, radii, spacing. | |
| createdAt | Yes | ||
| updatedAt | Yes | ||
| customFonts | Yes | ||
| workspaceId | Yes |