Match the language menu to the site
proxylang_styleRestyle the language menu so it looks like part of the site. Read the site's brand color, background, text color, button roundness and dark mode first, then send only the fields to change in style. Colors: #hex, rgb(), hsl() or a CSS color name; each has a Light and a Dark version. Full field list: https://proxylang.dev/agents.md step 7.
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": {
"agent_token": "<agent_token>",
"style": "<style>"
},
"name": "proxylang_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | Yes | Fields to change, e.g. {"accent": "#0a7cff", "triggerBgLight": "#ffffff", "triggerTextLight": "#111827", "borderRadius": "pill"}. Fields: triggerBg/triggerText/triggerHover/dropdownBg/dropdownText/bg/text/border + Light|Dark, accent, accentText, borderRadius (rounded|pill|square), size (small|medium|large), dropdownSize, shadowStrength (none|light|medium|strong), glassmorphism, position, displayFormat (code|native|both), flagStyle (none|rectangle|square|circle), animation, darkModeMethod (auto|class), darkModeClass, displayMode (floating|inline: inline needs <div id="proxylang-widget"></div> in the site's nav bar), mobileBreakpoint, draggable, flagFillsTrigger. | |
| agent_token | Yes | The agent_token from proxylang_start. |