Upload a theme
upload_themeUploads your own theme stylesheet (a custom theme, level 3) and returns its theme_id, the check results and warnings with fixes. Use it on any of your decks with theme "custom:<theme_id>" in create_deck or edit_deck, then preview to see it. Only broken or unsafe CSS is refused (selectors outside [data-theme="custom"], @import, outside url()s, !important, position:fixed, scripts); contract gaps, contrast and sizes are warnings. Send theme_id with a stylesheet to update it, theme_id alone to read it, nothing to list your themes, delete: true to remove one, start_from ("paper", "field", …) alone for one of our themes' stylesheet to start from, from_url (a company's website or a PDF link) for a ready stylesheet in that brand's colours, fonts and logo.
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": "upload_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A name for the theme, for your own reference. | |
| delete | No | true deletes theme_id. Decks using it show on Paper. | |
| from_url | No | A company's website, or a PDF on a public https link (brand guidelines, a report). Alone (or with start_from, default paper), it reads the brand's colours, fonts and logo, with no AI, and returns them with a ready stylesheet: start_from's theme with those values written in. The logo, if one is found, is stored as an image and already in the stylesheet. Check it, then send the stylesheet back with a name. Nothing else is saved. | |
| theme_id | No | Replace this theme (every deck using it changes too). Alone, it returns the theme and its stylesheet. | |
| start_from | No | One of our eight themes (paper, haze, stage, field, brief, studio, classroom, brand). Alone, it returns that theme's whole stylesheet, already written for [data-theme="custom"], with every token set: change its values and rules, then send it back as stylesheet. Nothing is saved. | |
| stylesheet | No | The theme's CSS, written to the theme contract (get_guide topic "levels", Custom themes): every selector starts with [data-theme="custom"]; the root block sets the tokens. Up to 100 KB. |