update_agent_custom_css
Overwrite the agent's customCSS field with new CSS that styles the chat widget. IMPORTANT: this REPLACES the existing customCSS value — always pass the FULL merged CSS (existing + your new rules), not just the delta. Workflow: (1) call get_widget_css_styling_guide to load selectors + rules, (2) optionally call get_agent_custom_css to read what's already there, (3) generate the merged CSS following the guide, (4) call this tool to persist. Pass an empty string to clear all customCSS for the agent.
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": {
"agentId": "<agentId>",
"customCSS": "<customCSS>"
},
"name": "update_agent_custom_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | The agent ID whose customCSS field you want to overwrite | |
| customCSS | Yes | The full CSS to write to the agent.customCSS field. REPLACES the existing value entirely. Use an empty string to clear. |