Modify a shared template
modify_templateChange a JSXImage template that the user shared with you as a link (a URL containing shared= or temp=, for example https://jsximage.com/playground?shared=...). Works in two steps:
Call with only
url: you get the template's current source code.Make the requested changes, then call again with the same
urland the COMPLETE modified source incode: you get a link to the modified copy.
The original template is never changed; the result is a new link that works for 7 days. The same template rules as create_template apply (class not className, no imports, no hooks, export const options, a default for every prop). If the code fails the check, you get the error back: fix it and call again. If the link is not available, tell the user and ask for a new one.
Design it like a senior designer, with none of the habits that make an image look AI-generated: one font family (two at most); aim for ONE text size for all text plus ONE big display size for the hero (a number or a headline), with hierarchy only from weight, color and spacing (three sizes at the very most); no small uppercase labels; no boxes around everything (one at most); a flat background, never a decorative gradient, glow or vignette, and no emoji (a fade behind text on a photo is the one gradient allowed); never text straight on a photo (darken it with an overlay or a fade at the bottom); Geist (built in) unless the brand has its own font, no thin weights, and tighter letter-spacing and line-height as text grows; double the whitespace you think you need, with outer margins at least as large as the gaps inside; colors taken from the brand's own site (its CSS, buttons or logo), never a default palette such as navy or slate with an orange accent, cream with terracotta, or black with acid green, and one accent used sparingly; a clear grid with generous margins; the brand's real logo when you have it; nothing under about 24px on a phone-sized image. These rules give way only when the user explicitly asks for something they forbid (a gradient, uppercase labels, a given color): then do what the user asked. The tool's reply flags these if it finds them: fix them with modify_template before giving the user the link, except what the user explicitly asked for.
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": {
"url": "<url>"
},
"name": "modify_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The JSXImage link the user gave you, for example https://jsximage.com/playground?shared=<token>. Pass it exactly as given. | |
| code | No | Leave out to read the template's current source. To save a change, the COMPLETE modified template source (not a diff). | |
| name | No | Optional title for the modified copy. Defaults to the original name plus "(modified)". Up to 80 characters. |